Skip to main content

Cancel Order (TRADE)

API Description

Cancel an active order.

Method

order.cancel

Request

{
"id": "a8627ea5-8b9f-452f-90ae-4136f2b442e2",
"method": "order.cancel",
"params": {
"apiKey": "",
"orderId": 333245211,
"symbol": "BTCUSD_PERP",
"timestamp": 1728416090517,
"signature": "0f04368b2d22aafd0ggc8809ea34297eff602272917b5f01267db4efbc1c9422"
 }
}

Request Weight

1

Request Parameters

NameTypeMandatoryDescription
symbolSTRINGYES
orderIdLONGNO
origClientOrderIdSTRINGNO
recvWindowLONGNO
timestampLONGYES
  • Either orderId or origClientOrderId must be sent.

Response Example

{
"id": "a8627ea5-8b9f-452f-90ae-4136f2b442e2",
"status": 200,
"result": {
"orderId": 333245211,
"symbol": "BTCUSD_PERP",
"pair": "BTCUSD",
"status": "CANCELED",
"clientOrderId": "5SztZiGFAxgAqw4J9EN9fA",
"price": "51000",
"avgPrice": "0.00",
"origQty": "1",
"executedQty": "0",
"cumQty": "0",
"cumBase": "0",
"timeInForce": "GTC",
"type": "LIMIT",
"reduceOnly": false,
"closePosition": false,
"side": "BUY",
"positionSide": "BOTH",
"stopPrice": "0",
"workingType": "CONTRACT_PRICE",
"priceProtect": false,
"origType": "LIMIT",
"updateTime": 1728416138285
},
"rateLimits": [
{
"rateLimitType": "REQUEST_WEIGHT",
"interval": "MINUTE",
"intervalNum": 1,
"limit": 2400,
"count": 6
}
]
}