Closed Trefex closed 4 months ago
Hey @Trefex thats probably because IBKR keeps adding fields to their API. I just updated the IBflex lib, try rebuilding from scratch now.
@agusalex Nice!!
After re-running, now it fails again
[2024-07-08 13:42:40] Crontab Not Present running one time now
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/ibflex/parser.py", line 115, in parse_data_element
attrs = dict(
File "/usr/local/lib/python3.9/site-packages/ibflex/parser.py", line 116, in <genexpr>
parse_element_attr(Class, k, v)
File "/usr/local/lib/python3.9/site-packages/ibflex/parser.py", line 156, in parse_element_attr
Type = Class.__annotations__[name]
KeyError: 'rtn'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/app/src/main.py", line 23, in <module>
ghost.sync_ibkr()
File "/usr/app/src/SyncIBKR.py", line 72, in sync_ibkr
query: FlexQueryResponse = parser.parse(response)
File "/usr/local/lib/python3.9/site-packages/ibflex/parser.py", line 53, in parse
parsed = parse_element(root)
File "/usr/local/lib/python3.9/site-packages/ibflex/parser.py", line 85, in parse_element
return parse_data_element(elem)
File "/usr/local/lib/python3.9/site-packages/ibflex/parser.py", line 125, in parse_data_element
contained_elements = {child.tag: parse_element(child) for child in elem}
File "/usr/local/lib/python3.9/site-packages/ibflex/parser.py", line 125, in <dictcomp>
contained_elements = {child.tag: parse_element(child) for child in elem}
File "/usr/local/lib/python3.9/site-packages/ibflex/parser.py", line 80, in parse_element
return parse_element_container(elem)
File "/usr/local/lib/python3.9/site-packages/ibflex/parser.py", line 101, in parse_element_container
instances = tuple(parse_data_element(child) for child in elem)
File "/usr/local/lib/python3.9/site-packages/ibflex/parser.py", line 101, in <genexpr>
instances = tuple(parse_data_element(child) for child in elem)
File "/usr/local/lib/python3.9/site-packages/ibflex/parser.py", line 125, in parse_data_element
contained_elements = {child.tag: parse_element(child) for child in elem}
File "/usr/local/lib/python3.9/site-packages/ibflex/parser.py", line 125, in <dictcomp>
contained_elements = {child.tag: parse_element(child) for child in elem}
File "/usr/local/lib/python3.9/site-packages/ibflex/parser.py", line 83, in parse_element
return parse_element_container(elem)
File "/usr/local/lib/python3.9/site-packages/ibflex/parser.py", line 101, in parse_element_container
instances = tuple(parse_data_element(child) for child in elem)
File "/usr/local/lib/python3.9/site-packages/ibflex/parser.py", line 101, in <genexpr>
instances = tuple(parse_data_element(child) for child in elem)
File "/usr/local/lib/python3.9/site-packages/ibflex/parser.py", line 121, in parse_data_element
raise FlexParserError(msg)
ibflex.parser.FlexParserError: Trade has no attribute 'rtn'```
Yes but different error! one step closer. Added rtn
now to the model, try again please!
This is the repo where I update the models, feel free to fork that repo and play with the model on your own if it keeps on failing https://github.com/agusalex/ibflex https://github.com/agusalex/ibflex/commit/fb32fc570b135e2bd1bacd894a7e732d39737c73
You just need to point the requirements.txt on ghostfolio-sync to your own fork. When its ready open a PR and let me know so we can merge it.
Hi,
I tried your container, i rebuilt it for ARM, and I receive following error.
Not sure how to proceed?
Many thanks, T