Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: U.S. Treasury Bills #69

Open
RaiaN opened this issue Aug 20, 2023 · 2 comments
Open

ValueError: U.S. Treasury Bills #69

RaiaN opened this issue Aug 20, 2023 · 2 comments

Comments

@RaiaN
Copy link

RaiaN commented Aug 20, 2023

Подгрузил все 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
Copy link
Owner

cdump commented Aug 20, 2023

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

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

@mixti77
Copy link

mixti77 commented Feb 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants