CQG API 4.0 - Revised
PlaceCompoundOrderEx Method
See Also  Send Feedback
compound_order_type
order_chain
Parts (legs) of the compound order.
CQGCEL Interface : PlaceCompoundOrderEx Method

Glossary Item Box

Description

Async request to place compound order.

Syntax

Visual Basic
Public Sub PlaceCompoundOrderEx( _
   ByVal compound_order_type As ECompoundOrderType, _
   ByVal order_chain As CQGOrderChain _
) 

Parameters

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
Parts (legs) of the compound order.

Remarks

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.

See Also