Cancel OCO (TRADE)
Cancel an entire Order List
Canceling an individual leg will cancel the entire OCO
Weight(IP): 1
Query parameters
Trading symbol, e.g. BNBUSDT
Order list id
A unique Id for the entire orderList
Used to uniquely identify this cancel. Automatically generated by default
The value cannot be greater than 60000
UTC timestamp in ms
Signature
Response
Report on deleted OCO
Example response
{
"orderListId": 1929,
"contingencyType": "OCO",
"listStatusType": "ALL_DONE",
"listOrderStatus": "ALL_DONE",
"listClientOrderId": "C3wyj4WVEktd7u9aVBRXcN",
"transactionTime": 1574040868128,
"symbol": "BNBBTC",
"orders": [
{
"symbol": "BNBBTC",
"orderId": 2,
"clientOrderId": "pO9ufTiFGg3nw2fOdgeOXa"
},
{
"symbol": "BNBBTC",
"orderId": 3,
"clientOrderId": "TXOvglzXuaubXAaENpaRCB"
}
],
"orderReports": [
{
"symbol": "BNBBTC",
"origClientOrderId": "pO9ufTiFGg3nw2fOdgeOXa",
"orderId": 2,
"orderListId": 0,
"clientOrderId": "unfWT8ig8i0uj6lPuYLez6",
"price": "1.00000000",
"origQty": "10.00000000",
"executedQty": "0.00000000",
"cummulativeQuoteQty": "0.00000000",
"status": "CANCELED",
"timeInForce": "GTC",
"type": "STOP_LOSS_LIMIT",
"side": "SELL",
"stopPrice": "1.00000000",
"transactTime": 1688005070874
},
{
"symbol": "BNBBTC",
"origClientOrderId": "TXOvglzXuaubXAaENpaRCB",
"orderId": 3,
"orderListId": 0,
"clientOrderId": "unfWT8ig8i0uj6lPuYLez6",
"price": "3.00000000",
"origQty": "10.00000000",
"executedQty": "0.00000000",
"cummulativeQuoteQty": "0.00000000",
"status": "CANCELED",
"timeInForce": "GTC",
"type": "LIMIT_MAKER",
"side": "SELL",
"selfTradePreventionMode": "NONE",
"transactTime": 1688005070874
}
]
}Changes
Changed in 3 of the 26 revisions of this API.332
- ○
added the required property
orderReports/items/transactTimeto the response with the200statusresponse-required-property-added
- ○
- ○
added the required property
orderReports/items/selfTradePreventionModeto the response with the200statusresponse-required-property-added
- ○
- ▲
for the
queryrequest parameterorderListId, the type/format was changed frominteger/tointeger/int64request-parameter-type-changed
- ▲
for the
queryrequest parameterrecvWindow, the type/format was changed frominteger/tointeger/int64request-parameter-type-changed
- ▲
for the
queryrequest parametertimestamp, the type/format was changed frominteger/tointeger/int64request-parameter-type-changed
- ○
the response property
codebecame required for the status400response-property-became-required
- ○
the response property
codebecame required for the status401response-property-became-required
- ○
the response property
contingencyTypebecame required for the status200response-property-became-required
- ○
the response property
listClientOrderIdbecame required for the status200response-property-became-required
- ○
the response property
listOrderStatusbecame required for the status200response-property-became-required
- ○
the response property
listStatusTypebecame required for the status200response-property-became-required
- ○
the response property
msgbecame required for the status400response-property-became-required
- ○
the response property
msgbecame required for the status401response-property-became-required
- ○
the response property
orderListIdbecame required for the status200response-property-became-required
- ○
the response property
orderReportsbecame required for the status200response-property-became-required
- ○
the response property
orderReports/items/clientOrderIdbecame required for the status200response-property-became-required
- ○
the response property
orderReports/items/cummulativeQuoteQtybecame required for the status200response-property-became-required
- ○
the response property
orderReports/items/executedQtybecame required for the status200response-property-became-required
- ○
the response property
orderReports/items/orderIdbecame required for the status200response-property-became-required
- ○
the response property
orderReports/items/orderListIdbecame required for the status200response-property-became-required
- ○
the response property
orderReports/items/origClientOrderIdbecame required for the status200response-property-became-required
- ○
the response property
orderReports/items/origQtybecame required for the status200response-property-became-required
- ○
the response property
orderReports/items/pricebecame required for the status200response-property-became-required
- ○
the response property
orderReports/items/sidebecame required for the status200response-property-became-required
- ○
the response property
orderReports/items/statusbecame required for the status200response-property-became-required
- ○
the response property
orderReports/items/stopPricebecame required for the status200response-property-became-required
- ○
the response property
orderReports/items/symbolbecame required for the status200response-property-became-required
- ○
the response property
orderReports/items/timeInForcebecame required for the status200response-property-became-required
- ○
the response property
orderReports/items/typebecame required for the status200response-property-became-required
- ○
the response property
ordersbecame required for the status200response-property-became-required
- ○
the response property
orders/items/clientOrderIdbecame required for the status200response-property-became-required
- ○
the response property
orders/items/orderIdbecame required for the status200response-property-became-required
- ○
the response property
orders/items/symbolbecame required for the status200response-property-became-required
- ○
the response property
symbolbecame required for the status200response-property-became-required
- ○
the response property
transactionTimebecame required for the status200response-property-became-required
- ▲