You may want to read here to see how this can be done with IB's API:
https://interactivebrokers.github.i...1Order.html#a3485999c42d64f3c879ec4a424bab697
https://interactivebrokers.github.io/tws-api/oca.html
Thanks @HobbyTrading. I've seen those -- pretty comfortable with the OCA group part. It's specifically getting an OCA group (with a GAT in it) to follow a parent's size that I'm hoping @southall can confirm he's done.
And the API docs don't inspire confidence. E.g., the bit on attaching orders here says:
Advanced orders such as Bracket Orders or Hedging involve attaching child orders to a parent... When an order is attached to another, the system will keep the child order 'on hold' until its parent fills. Once the parent order is completely filled, its children will automatically become active.
From what everyone on this thread says, the children are active after even a partial fill, so that "completely" looks wrong.