Skip to main content

Batch Cancel Orders

Cancel multiple orders in a single request. Supports both single symbol and multiple symbols modes.

HTTP Request

POST /api/v1/spot/trade/batch-cancel-orders

Request Parameters

ParameterTypeRequiredDescription
symbolstringNoTrading pair symbol (required when batchMode is "single")
batchModestringNoBatch mode: "single" or "multiple" (default: "single")
orderListarrayYesArray of orders to cancel

Order List Item Parameters

ParameterTypeRequiredDescription
symbolstringNoTrading pair symbol (required when batchMode is "multiple")
orderIdstringYesOrder ID to cancel

Request Example

Single Symbol Mode

curl -X POST "https://open-api.bydoxe.com/api/v1/spot/trade/batch-cancel-orders" \
-H "ACCESS-KEY: your-api-key" \
-H "ACCESS-SIGN: your-signature" \
-H "ACCESS-PASSPHRASE: your-passphrase" \
-H "ACCESS-TIMESTAMP: 1659076670000" \
-H "Content-Type: application/json" \
-d '{
"symbol": "BTCUSDT",
"batchMode": "single",
"orderList": [
{
"orderId": "123456789"
},
{
"orderId": "123456790"
}
]
}'

Multiple Symbols Mode

curl -X POST "https://open-api.bydoxe.com/api/v1/spot/trade/batch-cancel-orders" \
-H "ACCESS-KEY: your-api-key" \
-H "ACCESS-SIGN: your-signature" \
-H "ACCESS-PASSPHRASE: your-passphrase" \
-H "ACCESS-TIMESTAMP: 1659076670000" \
-H "Content-Type: application/json" \
-d '{
"batchMode": "multiple",
"orderList": [
{
"symbol": "BTCUSDT",
"orderId": "123456789"
},
{
"symbol": "ETHUSDT",
"orderId": "987654321"
}
]
}'

Response Parameters

ParameterTypeDescription
codestringResponse code
msgstringResponse message
requestTimenumberRequest timestamp in milliseconds
dataobjectBatch cancel result
> successListarrayArray of successfully canceled orders
>> orderIdstringOrder ID
> failureListarrayArray of failed cancellations
>> orderIdstringOrder ID
>> errorMsgstringError message
>> errorCodestringError code

Response Example

Success Response

{
"code": "00000",
"msg": "success",
"requestTime": 1732000000000,
"data": {
"successList": [
{
"orderId": "123456789"
}
],
"failureList": [
{
"orderId": "987654321",
"errorMsg": "order not found",
"errorCode": "40002"
}
]
}
}

Error Codes

CodeMessage
40001Parameter cannot be empty
40001Maximum 50 orders allowed
40001Symbol is required in single mode
40001Symbol is required in orderList for multiple mode
40001Missing required parameter: orderId
40002Unauthorized