Link a standalone order into the position's OCO group
Adopts an existing standalone working order into the one-cancels-other (OCO) group of the open position on the same contract. The leg kind is derived from the order type: a limit order is adopted as an additional take-profit, a stop order as a stop-loss.
The order must be working and on the exit side of the position (e.g. a sell limit or sell stop while long). After linking, it participates in OCO: if a sibling exit fills or anything flattens the position, this order is cancelled; if a sibling exit scales the position down, this order is resized. A reduce-only guard rejects the link when the order’s size exceeds the position quantity not already covered by same-kind legs.
This enables multiple take-profits sharing one stop, or adopting a manually placed stop as the position’s protection. Direct mutation (not queued).
Body
Link an existing standalone order into the OCO group of the open position on the same contract (as an additional take-profit).
Response
Order linked into OCO group
Response containing the order after it was linked into the OCO group.