wesm / ib-flex-analyzer

Analyze your Interactive Brokers Flex XML reports with pandas

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KeyError: 'mtmYTD' for my full year 2016 & partial 2017 statements.

ByteJuggler opened this issue · comments

Might be me, but I'm running into a problem trying to run my IB statements through the analyzer.

The first year (2015) runs fine, though this is not a full year, starting on 15/05 and ending 31/12.

2016 is a full year (Jan 4 2016 - Dec 30 2016), and does indeed not contain any reference to the mtmYTD attribute. I note it does contain the MTDYTDPerformanceSummary tag, but this is immediately closed again, as compared to 2015 which contains a bunch of MTDYTDPerformanceSummaryUnderlying tags inside of which the mtmYTD attrs are referenced.

2017 is (obviously) a partial started on the first day of 2017 and up to YTD. I also tried up to last business day of last month (based on your README comment), but this made no difference. In both cases it also behaves as above with 2016, e.g. I get the mtmYTD KeyError.

Any ideas what might be going on? It would almost seem to me as though IB's not properly exporting my 2016 and 2017 XML files, and/or that the warning from your README applies? But if so what am I doing wrong?