New Order List - OTOCO (TRADE)
Place an OTOCO.
- An OTOCO (One-Triggers-One-Cancels-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 against the unfilled order count, EXCHANGE_MAX_NUM_ORDERS filter, and MAX_NUM_ORDERS filter.
Weight: 1
Query parameters
Trading symbol, e.g. BNBUSDT
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
Arbitrary numeric value identifying the working order within an order strategy.
Arbitrary numeric value identifying the working order strategy. Values smaller than 1000000 are reserved and cannot be used.
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.
Arbitrary numeric value identifying the pending above order within an order strategy.
Arbitrary numeric value identifying the pending above order strategy. Values smaller than 1000000 are reserved and cannot be used.
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.
Arbitrary numeric value identifying the pending below order within an order strategy.
Arbitrary numeric value identifying the pending below order strategy. Values smaller than 1000000 are reserved and cannot be used.
The value cannot be greater than 60000
UTC timestamp in ms
Signature
Response
New OTOCO details
Example response
{
"orderListId": 1,
"contingencyType": "OTOCO",
"listStatusType": "EXEC_STARTED",
"listOrderStatus": "EXECUTING",
"listClientOrderId": "RumwQpBaDctlUu5jyG5rs0",
"transactionTime": 1712291372842,
"symbol": "LTCBTC"
}