Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Recurring error log: KeyError: 'completedOrders' #683

Open
gdassori opened this issue Jan 16, 2024 · 0 comments
Open

Recurring error log: KeyError: 'completedOrders' #683

gdassori opened this issue Jan 16, 2024 · 0 comments

Comments

@gdassori
Copy link

gdassori commented Jan 16, 2024

Hello, i'm plenty of errors like this one, using the latest ib_insync.
I've seen it while I was investigating on why I can't be able to find filled orders by permId in the trades() method.

Traceback (most recent call last):
File "/home/user/venv/lib/python3.9/site-packages/ib_insync/decoder.py", line 198, in interpret
handler(fields)
File "/home/user/venv/lib/python3.9/site-packages/ib_insync/decoder.py", line 1287, in completedOrder
self.wrapper.completedOrder(c, o, st)
File "/home/user/venv/lib/python3.9/site-packages/ib_insync/wrapper.py", line 401, in completedOrder
self._results['completedOrders'].append(trade)
KeyError: 'completedOrders'

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

No branches or pull requests

1 participant