Async request to modify compound order. Modification currently supports only adding new parts (legs) to the existing active compound order.
Visual Basic |
---|
Public Sub ModifyCompoundOrderEx( _ ByVal compound_order_id As String, _ ByVal compound_order_type As ECompoundOrderType, _ ByVal order_chain As CQGOrderChain _ ) |
- compound_order_id
- ID of compound order that is beeing modified. Compound order ID can be retreived via opCompoundOrderID order property from any compound order part (leg).
- compound_order_type
Value Description coOCO Order-Cancels-Orders type. The order consists of several parts (legs, orders from CQGOrderChain). If one part (leg) of the order is executed, then all other parts (legs) are canceled. coOPO Order-Places-Order type. The order consists of several parts (legs, orders from CQGOrderChain). Initially, only the first part (leg) is active (in a working state) and all others are in a waiting state (corresponds to osContingent order status). When the active part (leg) is executed, all other parts (legs) become active. - order_chain
- New parts (legs) to add to the existing active compound order.