Skip to main content

Cancel Multiple Orders (TRADE)

API Description

Cancel Multiple Orders

HTTP Request

DELETE /fapi/v1/batchOrders

Request Weight

1

Request Parameters

NameTypeMandatoryDescription
symbolSTRINGYES
orderIdListLIST<LONG>NOmax length 10
e.g. [1234567,2345678]
origClientOrderIdListLIST<STRING>NOmax length 10
e.g. ["my_id_1","my_id_2"], encode the double quotes. No space after comma.
recvWindowLONGNO
timestampLONGYES
  • Either orderIdList or origClientOrderIdList must be sent.

Response Example

[
{
"clientOrderId": "myOrder1",
"cumQty": "0",
"cumQuote": "0",
"executedQty": "0",
"orderId": 283194212,
"origQty": "11",
"origType": "TRAILING_STOP_MARKET",
"price": "0",
"reduceOnly": false,
"side": "BUY",
"positionSide": "SHORT",
"status": "CANCELED",
"stopPrice": "9300", // please ignore when order type is TRAILING_STOP_MARKET
"closePosition": false, // if Close-All
"symbol": "BTCUSDT",
"timeInForce": "GTC",
"type": "TRAILING_STOP_MARKET",
"activatePrice": "9020", // activation price, only return with TRAILING_STOP_MARKET order
"priceRate": "0.3", // callback rate, only return with TRAILING_STOP_MARKET order
"updateTime": 1571110484038,
"workingType": "CONTRACT_PRICE",
"priceProtect": false, // if conditional order trigger is protected
"priceMatch": "NONE", //price match mode
"selfTradePreventionMode": "NONE", //self trading preventation mode
"goodTillDate": 1693207680000 //order pre-set auot cancel time for TIF GTD order
},
{
"code": -2011,
"msg": "Unknown order sent."
}
]