开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Client ID 7 creates an order, master client ID try to update or cancel the order


 

I can reproduce this, I wonder if it is a known bug?

According to IB, Only Master Client ID can update or cancel order clients’ orders

Scenario:
Master Client ID = 1 defined in TWS configuration.?
?
Client ID 7 creates the orderId = 2225.
Client ID 1 (master) try to update the order 2225. It encounters this error:

2024-05-22 18:49:15 - ibinsync.wrapper - ERROR - Error 135, reqId 2235: Can't find order with id = **_2234**

Where the orderId 2234 came from??? I verified the order id being sent is 2225
Could it be due to ib_insync gets confused processing cross clientId update (or cancel) operations?

?

Thank you,


 

On Mon, May 27, 2024 at 02:16 PM, pythontrader wrote:
Only Master Client ID can update or cancel order clients’ orders
Not sure about the issue you mention with trying to update using the master id, but just to confirm? - is your use-case to update orders created by other client ids? So using your example above, you want to be able to update CLient id 7's orders from another client id and not client id 7 itself?