cdump / investments

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

KeyError: 'Amount' #68

Closed revic50 closed 1 year ago

revic50 commented 1 year ago

Привет! С чем может быть связана такая ошибка:

Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "D:\investments-master\investments\ibtax__main__.py", line 3, in main() File "D:\investments-master\investments\ibtax\ibtax.py", line 181, in main parser_object = parse_reports(args.activity_reports_dir, args.confirmation_reports_dir) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\investments-master\investments\ibtax\ibtax.py", line 144, in parse_reports parser_object.parse_csv( File "D:\investments-master\investments\report_parsers\ib.py", line 201, in parse_csv self._real_parse_activity_csv(csv.reader(activity_fh, delimiter=','), { File "D:\investments-master\investments\report_parsers\ib.py", line 259, in _real_parse_activity_csv parser_fn(fields) File "D:\investments-master\investments\report_parsers\ib.py", line 355, in _parse_deposits amount = Money(f['Amount'], currency) ~^^^^^^^^^^ KeyError: 'Amount'

cdump commented 1 year ago

Возможно отчет activity был выгружен не на английском языке

revic50 commented 1 year ago

Точно, спасибо