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
Parameter | Type | Required | Description |
---|---|---|---|
symbol | String | No | Trading pair, e.g. ETHUSDT |
productType | String | Yes | Product typeUSDT-FUTURES USDT professional futuresCOIN-FUTURES Mixed futuresUSDC-FUTURES USDC professional futuresSUSDT-FUTURES USDT professional futures demoSCOIN-FUTURES Mixed futures demoSUSDC-FUTURES USDC professional futures demo |
marginCoin | String | No | Margin coin, must be capitalized |
requestTime | String | No | request Time Unix millisecond timestamp |
receiveWindow | String | No | valid 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
Parameter | Type | Description |
---|---|---|
successList | List<Object> | The collection of successfully cancelled orders. |
>orderId | String | Order ID |
>clientOid | String | Customize order ID |
failureList | List<Object> | The collection of unsuccessfully cancelled orders. |
>orderId | String | Order ID |
>clientOid | String | Customize order ID |
>errorMsg | String | Failure reason |
>errorCode | String | Error code |