v26

latestOpenAPI 3.0.2raw.githubusercontent.com2024-10-0834042975.6 KB
Margin

Margin Account Cancel OCO (TRADE)

Cancel an entire Order List for a margin account

  • Canceling an individual leg will cancel the entire OCO
  • Either orderListId or listClientOrderId must be provided

Weight(UID): 1

delete/sapi/v1/margin/orderList

Query parameters

symbolstring required
Example:BNBUSDT

Trading symbol, e.g. BNBUSDT

isIsolated'TRUE' | 'FALSE'
  • TRUE - For isolated margin
  • FALSE - Default, not for isolated margin
orderListIdinteger

Order list id

listClientOrderIdstring

A unique Id for the entire orderList

newClientOrderIdstring

Used to uniquely identify this cancel. Automatically generated by default

recvWindowinteger
Example:5000

The value cannot be greater than 60000

timestampinteger required

UTC timestamp in ms

signaturestring required

Signature

Response

Margin OCO details

orderListIdinteger required
contingencyTypestring required
listStatusTypestring required
listOrderStatusstring required
listClientOrderIdstring required
transactionTimeinteger required
symbolstring required
isIsolatedboolean required

Example response

{
  "contingencyType": "OCO",
  "listStatusType": "ALL_DONE",
  "listOrderStatus": "ALL_DONE",
  "listClientOrderId": "C3wyj4WVEktd7u9aVBRXcN",
  "transactionTime": 1574040868128,
  "symbol": "BNBUSDT"
}