Skip to main content

Cancel All Orders

Rate limit: 10 req/sec/UID

Description

HTTP Request

  • POST /api/v2/mix/order/cancel-all-orders
Request Example
curl -X POST "https://api.bitget.com/api/v2/mix/order/cancel-all-orders" \
-H "ACCESS-KEY:your apiKey" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:zh-CN" \
-H "Content-Type: application/json" \
-d '{
"symbol": "BTCUSDT",
"productType": "USDT-FUTURES",
"marginCoin": "USDT"
}'

Request Parameters

ParameterTypeRequiredDescription
symbolStringNoTrading pair, e.g. ETHUSDT
productTypeStringYesProduct type
USDT-FUTURES USDT professional futures
COIN-FUTURES Mixed futures
USDC-FUTURES USDC professional futures
SUSDT-FUTURES USDT professional futures demo
SCOIN-FUTURES Mixed futures demo
SUSDC-FUTURES USDC professional futures demo
marginCoinStringNoMargin coin, must be capitalized
requestTimeStringNorequest Time Unix millisecond timestamp
receiveWindowStringNovalid window period Unix millisecond timestamp Unix millisecond timestamp
Response Example
{
"code": "00000",
"data": {
"successList": [
{
"orderId": "121211212122",
"clientOid": "BITGET#121211212122"
}
],
"failureList": [
{
"orderId": "232",
"clientOid": "321342",
"errorMsg": "notExistend"
}
]
},
"msg": "success",
"requestTime": 1627293504612
}

Response Parameters

ParameterTypeDescription
successListList<Object>The collection of successfully cancelled orders.
>orderIdStringOrder ID
>clientOidStringCustomize order ID
failureListList<Object>The collection of unsuccessfully cancelled orders.
>orderIdStringOrder ID
>clientOidStringCustomize order ID
>errorMsgStringFailure reason
>errorCodeStringError code

How was your Reading Experience with us?