erdewit / ib_insync

Python sync/async framework for Interactive Brokers API
BSD 2-Clause "Simplified" License
2.81k stars 753 forks source link

Pending Order not found. #674

Closed kaidaniel82 closed 8 months ago

kaidaniel82 commented 9 months ago

I manually added a bracket order to an existing position using TWS. This position is synchronized across multiple devices, so it resides on the IB server.

Since it's the weekend, this bracket order is marked as "Held and being monitored," which is visible on multiple devices.

When I try to find this order using ib_insync, it does not appear.

I tried: ib.orders() ib.trades() ib.openOrders() ....

Is also wrote Issue #39

Is this a gap in the API?

Best regards.

kaidaniel82 commented 9 months ago

looks like with client_id = 0 its working, but that seems to be not ideal.

biney59 commented 9 months ago

The ability to view all active orders with client id 0 is a limitation of TWS, and not _ibinsync I beleive, according to their API.