Skip to main content

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

ParameterTypeRequiredDescription
symbolStringYesTrading pair name, e.g. BTCUSDT
orderListArrayYesOrder ID List ,maximum length: 50
> orderIdStringNoOrder ID. Either orderId or clientOid is required.
> clientOidStringNoClient 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

ParameterTypeDescription
successListArraySuccessful order number
>orderIdStringOrder ID
>clientOidStringClient Order ID
failureListArrayFailed order number
>orderIdStringOrder ID
>clientOidStringClient Order ID
>errorMsgStringError information
>errorCodeStringError code