Margin Account New OTOCO (TRADE)
Post a new OTOCO order for margin account:
- An OTOCO (One-Triggers-the-Other-Cancel-the-Other) is an order list comprised of 3 orders
- The first order is called the working order and must be LIMIT or LIMIT_MAKER. Initially, only the working order goes on the order book.
- The behavior of the working order is the same as the OTO.
- OTOCO has 2 pending orders (pending above and pending below), forming an OCO pair. The pending orders are only placed on the order book when the working order gets fully filled.
- The rules of the pending above and pending below follow the same rules as the Order List OCO.
- OTOCOs add 3 orders to the unfilled order count, EXCHANGE_MAX_NUM_ORDERS filter and MAX_NUM_ORDERS filter.
Weight(UID): 6
Query parameters
Trading symbol, e.g. BNBUSDT
- TRUE - For isolated margin
- FALSE - Default, not for isolated margin
Default NO_SIDE_EFFECT
Only when MARGIN_BUY order takes effect, true means that the debt generated by the order needs to be repay after the order is cancelled. The default is true
Arbitrary unique ID among open order lists. Automatically generated if not sent. A new order list with the same listClientOrderId is accepted only when the previous one is filled or completely expired. listClientOrderId is distinct from the workingClientOrderId and the pendingClientOrderId.
Set the response JSON.
The allowed enums is dependent on what is configured on the symbol. The possible supported values are EXPIRE_TAKER, EXPIRE_MAKER, EXPIRE_BOTH, NONE.
Supported values: LIMIT,LIMIT_MAKER
BUY,SELL
Arbitrary unique ID among open orders for the working order. Automatically generated if not sent.
Sets the quantity for the working order.
This can only be used if workingTimeInForce is GTC.
GTC, IOC, FOK
BUY,SELL
Sets the quantity for the pending order.
Supported values: LIMIT_MAKER, STOP_LOSS, and STOP_LOSS_LIMIT
Arbitrary unique ID among open orders for the pending above order. Automatically generated if not sent.
This can only be used if pendingAboveTimeInForce is GTC.
Supported values: LIMIT_MAKER, STOP_LOSS, and STOP_LOSS_LIMIT
Arbitrary unique ID among open orders for the pending below order. Automatically generated if not sent.
This can only be used if pendingBelowTimeInForce is GTC.
UTC timestamp in ms
Signature
Response
OTOCO order
Example response
{
"orderListId": 13551,
"contingencyType": "OTOCO",
"listStatusType": "EXEC_STARTED",
"listOrderStatus": "EXECUTING",
"listClientOrderId": "u2AUo48LLef5qVenRtwJZy",
"transactionTime": 1725521881300,
"symbol": "BNBUSDT"
}