Skip to main content
Version: V3

Batch Cancel Orders (TRADE)

  • DELETE /api/v3/order/batch

Weight(IP): 5, Weight(UID): 10

Request parameters

ParameterTypeRequired?Description
orderIdsArrayConditionalOrder IDs to cancel. Required when origClientOrderIds is empty.
origClientOrderIdsArrayConditionalClient order IDs to cancel. Required when orderIds is empty.

Request example

curl -X DELETE "https://api-spot.weex.com/api/v3/order/batch" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*******" \
-H "ACCESS-PASSPHRASE:*****" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "Content-Type: application/json" \
-d '{
"symbol": "BTCUSDT",
"orderIds": [702345678901234567, 702345678901234568]
}'

Response parameters

FieldTypeDescription
orderListArray<Object>Per-order cancel result.
→ orderIdLongCancelled order ID (if found).
→ statusStringFinal status, e.g. CANCELED.
→ errorMsgStringError message when cancellation failed.

Response example

{
"orderList": [
{
"orderId": 702345678901234567,
"status": "CANCELED"
},
{
"orderId": 702345678901234568,
"status": "EXPIRED",
"errorMsg": "order not found"
}
]
}