Unfortunately we have two (almost identical) topics on this issue. You may want to check out "10326 OCA group revision is not allowed - it strikes again" as well. [MODERATOR EDIT: The two topics have been merged and pots from both topics are in this topics now] The root cause for error 10326 in that post was the fact, that the original bracket order did assign a custom OCA group name to the profit taker and stop loss child orders. Newer TWS versions seem to ignore those OCA group names, assign generic names, and consequently and correctly reject child order changes with error 10326 when the custom OCA name is used. It looks to TWS as if you want to change the OCA group membership of the order which is not allowed and causes error 10326. As the code samples for bracket orders in the TWS API documentation suggest, do not assign OCA group names in bracket orders, rather let IBKR assign them. And when you try to change an order, always start with the last Order object you received from IBKR through an openOrder() callback. That Order object will always be most up to date and complete. And in this case, will contain the OCA group name assigned by IBKR. 闯ü谤驳别苍 ?
?
On Thu, Mar 13, 2025 at 03:05 PM, wordd wrote:
|