Skip to main content

Cancel Order

Cancel the specified perpetual futures order.

API Information

Request Parameters

ParameterLocationTypeRequiredDescription
idpathstringYesOrder ID

Request Example

DELETE /fapi/v1/orders/1234567890123456789

Response Fields

Returns the full information of the canceled order.

FieldTypeDescription
codeintegerStatus code
messagestringResponse message
data.idstringOrder ID
data.symbolstringTrading pair
data.client_order_idstringClient order ID
data.statusintegerOrder status
data.cancel_reasonstringCancel reason
data.pricestringOrder price
data.qtystringOrder quantity
data.filled_qtystringFilled quantity
data.filled_quotestringFilled amount
data.avg_pricestringAverage fill price
data.total_feestringAccumulated fee
data.fee_assetstringFee asset
data.updated_atintegerUpdate time (milliseconds)

Response Example

{
"code": 0,
"message": "success",
"data": {
"id": "1234567890123456789",
"symbol": "BTC_USDT",
"client_order_id": "my-order-001",
"side": 1,
"type": 1,
"status": 4,
"cancel_reason": "USER",
"price": "68500.00",
"qty": "0.1",
"filled_qty": "0.05",
"filled_quote": "3425.00",
"avg_price": "68500.00",
"total_fee": "1.71",
"fee_asset": "USDT",
"leverage": 10,
"margin_mode": 1,
"position_action": 1,
"position_side": 1,
"created_at": 1711929600000,
"updated_at": 1711929700000,
"user_id": "user123"
}
}