ORDER_CONDITION_TYPE
ORDER_CONDITION_TYPE_OCO
ORDER_CONDITION_TYPE_OCO is the value of the ConditionType property in the Condition structure, representing OCO orders (One-Cancels-the-Other). OCO orders set both take-profit and stop-loss conditions simultaneously. When one condition is triggered, the other condition is automatically cancelled.
Type
number
See Also
Remarks
The value of ORDER_CONDITION_TYPE_OCO is 0.
ORDER_CONDITION_TYPE_TP
ORDER_CONDITION_TYPE_TP is the ConditionType attribute value in the Condition structure, representing a Take Profit order. A take profit order automatically triggers when the market price reaches the preset target profit price.
Type
number
See Also
Remarks
The value of ORDER_CONDITION_TYPE_TP is 1.
ORDER_CONDITION_TYPE_SL
ORDER_CONDITION_TYPE_SL is the ConditionType attribute value in the Condition structure, representing a Stop Loss order. A stop loss order is automatically triggered when the market price reaches the preset stop loss price, used to limit potential losses.
Type
number
See Also
Remarks
The value of ORDER_CONDITION_TYPE_SL is 2.
ORDER_CONDITION_TYPE_GENERIC
ORDER_CONDITION_TYPE_GENERIC is the ConditionType property value in the Condition structure, representing a generic conditional order. The specific behavior of generic conditional orders depends on the exchange implementation.
Type
number
See Also
Remarks
The value of ORDER_CONDITION_TYPE_GENERIC is 3.