Batch Cancel Orders
Frequency limit:10 times/1s (UID)
Description
Cancel Orders in Batch
HTTP Request
- POST /api/v2/spot/trade/batch-cancel-order
Request Example
curl -X POST "https://api.cointr.com/api/v2/spot/trade/batch-cancel-order" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:en-US" \
-H "Content-Type: application/json" \
-d '{
"symbol": "BTCUSDT",
"orderList": [
{
"orderId":"121211212122",
"clientOid":"121211212122"
}
]
}'
Request Parameter
Parameter | Type | Required | Description |
---|---|---|---|
symbol | String | Yes | Trading pair name, e.g. BTCUSDT |
orderList | Array | Yes | Order ID List ,maximum length: 50 |
> orderId | String | No | Order ID. Either orderId or clientOid is required. |
> clientOid | String | No | Client Order ID.Either clientOid or orderId is required. |
Response Example
{
"code": "00000",
"message": "success",
"requestTime": 1695808949356,
"data": {
"successList": [
{
"orderId": "121211212122",
"clientOid": "121211212122"
}
],
"failureList": [
{
"orderId": "121211212122",
"clientOid": "xxx001",
"errorMsg": "duplicate clientOrderId"
}
]
}
}
Response Parameter
Parameter | Type | Description |
---|---|---|
successList | Array | Successful order number |
>orderId | String | Order ID |
>clientOid | String | Client Order ID |
failureList | Array | Failed order number |
>orderId | String | Order ID |
>clientOid | String | Client Order ID |
>errorMsg | String | Error information |
>errorCode | String | Error code |