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,