Cancel Order
Cancel the specified perpetual futures order.
API Information
- Method:
DELETE - Path:
/fapi/v1/orders/{id} - Authentication: Requires signature authentication (see Common Module · Signature Specification)
Request Parameters
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | Yes | Order ID |
Request Example
DELETE /fapi/v1/orders/1234567890123456789
Response Fields
Returns the full information of the canceled order.
| Field | Type | Description |
|---|---|---|
| code | integer | Status code |
| message | string | Response message |
| data.id | string | Order ID |
| data.symbol | string | Trading pair |
| data.client_order_id | string | Client order ID |
| data.status | integer | Order status |
| data.cancel_reason | string | Cancel reason |
| data.price | string | Order price |
| data.qty | string | Order quantity |
| data.filled_qty | string | Filled quantity |
| data.filled_quote | string | Filled amount |
| data.avg_price | string | Average fill price |
| data.total_fee | string | Accumulated fee |
| data.fee_asset | string | Fee asset |
| data.updated_at | integer | Update 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"
}
}