Batch Cancel Orders (TRADE)
- DELETE
/api/v3/order/batch
Weight(IP): 5, Weight(UID): 10
Request parameters
| Parameter | Type | Required? | Description |
|---|---|---|---|
| orderIds | Array | Conditional | Order IDs to cancel. Required when origClientOrderIds is empty. |
| origClientOrderIds | Array | Conditional | Client 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
| Field | Type | Description |
|---|---|---|
| orderList | Array<Object> | Per-order cancel result. |
| → orderId | Long | Cancelled order ID (if found). |
| → status | String | Final status, e.g. CANCELED. |
| → errorMsg | String | Error message when cancellation failed. |
Response example
{
"orderList": [
{
"orderId": 702345678901234567,
"status": "CANCELED"
},
{
"orderId": 702345678901234568,
"status": "EXPIRED",
"errorMsg": "order not found"
}
]
}