cdump / investments

Analysis of Interactive Brokers reports for tax reporting in Russia
MIT License
111 stars 20 forks source link

ValueError: U.S. Treasury Bills #69

Open RaiaN opened 1 year ago

RaiaN commented 1 year ago

Подгрузил все Activity Statement, получаю ошибку. В 2022 я покупал US Treasury Bills, Fixed Income не поддерживаются?

В Activity statement имею следующую строчку:

Realized & Unrealized Performance Summary | Data | U.S. Treasury Bills | 912796ZM4 - United States Treasury B 01/31/23 | 0 | 0 | 0 | 0 | 0 | 0 | 50.64 | 0 | 0 | 0 | 50.64 | 50.64

image

Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/home/raian/.local/lib/python3.10/site-packages/investments/ibtax/main.py", line 3, in main() File "/home/raian/.local/lib/python3.10/site-packages/investments/ibtax/ibtax.py", line 181, in main parser_object = parse_reports(args.activity_reports_dir, args.confirmation_reports_dir) File "/home/raian/.local/lib/python3.10/site-packages/investments/ibtax/ibtax.py", line 144, in parse_reports parser_object.parse_csv( File "/home/raian/.local/lib/python3.10/site-packages/investments/report_parsers/ib.py", line 189, in parse_csv self._real_parse_activity_csv(csv.reader(ac_fh, delimiter=','), { File "/home/raian/.local/lib/python3.10/site-packages/investments/report_parsers/ib.py", line 259, in _real_parse_activity_csv parser_fn(fields) File "/home/raian/.local/lib/python3.10/site-packages/investments/report_parsers/ib.py", line 268, in _parse_instrument_information kind=_parse_tickerkind(f['Asset Category']), File "/home/raian/.local/lib/python3.10/site-packages/investments/report_parsers/ib.py", line 43, in _parse_tickerkind raise ValueError(strval) ValueError: U.S. Treasury Bills

cdump commented 1 year ago

Не поддерживается, тикет на поддержку bonds (если это относится к Bonds)

У меня в портфеле такого нет, готов принять MR от знакомых с особенностями данного инструмента.

mixti77 commented 9 months ago

Проблема не решилась?