开云体育

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

Re: 10326 - OCA group revision is not allowed


 
Edited

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.

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:

Hi Jimmy thanks for the reply back in Nov.. curious if they ever got you a solution in ticket #804191? or if you got it working ever?
?
I've got an OCA Group type 2 and am trying to update stop price of one of the orders. Always getting this error:

Error 10326, reqId 40: OCA group revision is not allowed.

Set parentId = 0, unticked any api order protection.. no dice.

Going to try next using a different order object, rather than the original order I submitted, use the one passed back in the status.. sorta like 闯ü谤驳别苍 alluded to. I'll report back if I find anything.

Anyway thanks in advance.

Join [email protected] to automatically receive all group messages.