Async request to place compound order.
Visual Basic |
---|
Public Sub PlaceCompoundOrderEx( _ ByVal compound_order_type As ECompoundOrderType, _ ByVal order_chain As CQGOrderChain _ ) |
- 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
- Parts (legs) of the compound order.
Every compound order has own GUID. Value is assigned to each order part (leg) using CQGOrderChain.GUID property from order_chain parameter.
Compound order GUID will be available from opCompoundOrderGUID order part (leg) property after first OrderChanged event raising.
Every compound order has own (Gateway) ID. Value is assigned to each order part (leg) by server and can be accessed via opCompoundOrderID order property.