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.bitget.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": "",
"batchMode":"multiple",
"orderList": [
{
"orderId":"121211212122",
"symbol":"BTCUSDT",
"clientOid":"121211212122"
}
]
}'

Request Parameter

ParameterTypeRequiredDescription
symbolStringNoTrading pair name, e.g. BTCUSDT
batchModeStringNoBatch order mode
single single currency mode, default single currency mode
multiple cross-currency mode.
If single mode , the symbol in orderlist will be ingor
If multiple mode , the symbol in orderlist is not allow be null, and the symbol in orderlist is required. symbol outside orderlist will be ingor
orderListArrayYesOrder ID List ,maximum length: 50
>symbolStringNoTrading pair name, e.g. BTCUSDT
> 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

How was your Reading Experience with us?