CQG API 4.0 - Revised
ModifyCompoundOrderEx Method
See Also  Send Feedback
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
order_chain
New parts (legs) to add to the existing active compound order.
CQGCEL Interface : ModifyCompoundOrderEx Method

Glossary Item Box

Description

Async request to modify compound order. Modification currently supports only adding new parts (legs) to the existing active compound order.

Syntax

Visual Basic
Public Sub ModifyCompoundOrderEx( _
   ByVal compound_order_id As String, _
   ByVal compound_order_type As ECompoundOrderType, _
   ByVal order_chain As CQGOrderChain _
) 

Parameters

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
ValueDescription
coOCOOrder-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.
coOPOOrder-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.

See Also