Skip to main content

Cancel Order

Frequency limit: 10 times/1s

Description

Cancel a pending order

HTTP Request

  • POST /api/v2/mix/order/cancel-order
Request Example
curl -X POST "https://api.bitget.com/api/v2/mix/order/cancel-order" \
-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 '{
"orderId": "1",
"symbol": "BTCUSDT",
"productType": "usdt-futures",
"marginCoin": "USDT"
}'

Request Parameters

ParameterTypeRequiredDescription
symbolStringYesTrading pair
productTypeStringYesProduct type
USDT-FUTURES USDT-M Futures
COIN-FUTURES Coin-M Futures
USDC-FUTURES USDC-M Futures
SUSDT-FUTURES USDT-M Futures Demo
SCOIN-FUTURES Coin-M Futures Demo
SUSDC-FUTURES USDC-M Futures Demo
marginCoinStringNoMargin coin must be capitalized
orderIdStringNoOrder ID
Either orderId or clientOid is required.
If both are present, orderId prevails.
clientOidStringNoCustomize order ID
Either orderId or clientOid is required.
If both are present, orderId prevails.
Response Example
{
"code": "00000",
"data": {
"orderId": "123",
"clientOid": ""
},
"msg": "success",
"requestTime": 1627293504612
}

Return Parameter

ParameterTypeDescription
orderIdStringOrder ID
clientOidStringClient customized ID

How was your Reading Experience with us?