Batch Cancel Orders
HTTP request Batch cancel orders (single pair)
- POST
/api/v2/trade/cancel-batch-orders
Rate limit: 10 requests/second
Request parameters
Parameter | Parameter type | Required? | Description |
---|---|---|---|
symbol | String | Yes | Trading pair. For details, view:/products |
orderIds | String[] | No | Either Order ID or clientOids is required. |
clientOids | String[] | No | Either Client customized ID or orderIds is required. |
Request example
curl -X POST "https://api-spot.weex.com/api/v2/trade/cancel-batch-orders" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:zh-CN" \
-H "Content-Type: application/json" \
-d '{"symbol": "WXTUSDT_SPBL",
"orderIds": ["602926152964637114","602914146790408634"]
}'
Response parameters
Field Name | Type | Field Description |
---|---|---|
successList | Array | Successful orders array |
failureList | Array | Failed orders array |
> orderId | String | Order ID |
> clientOid | String | Either Client customized ID |
> errMsg | String | Error message |
Response example
{
"code": "00000",
"msg": "success",
"requestTime": 1743748830875,
"data": {
"successList": ["602926152964637114"],
"failureList": [{
"errMsg": "FAILED_ORDER_NOT_FOUND",
"orderId": "602914146790408634"
}]
}
}