Order Detail
Get detailed order information by order ID.
API Information
- Method:
GET - 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
GET /fapi/v1/orders/1234567890123456789
Response Fields
| Field | Type | Description |
|---|---|---|
| code | integer | Status code |
| message | string | Response message |
| data.id | string | Order ID |
| data.user_id | string | User ID |
| data.client_order_id | string | Client order ID |
| data.symbol | string | Trading pair |
| data.side | integer | Side: 1=buy, 2=sell |
| data.type | integer | Type: 1=limit, 2=market |
| data.status | integer | Status: 1=new, 2=partially filled, 3=filled, 4=canceled, 5=rejected |
| 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.leverage | integer | Leverage |
| data.margin_mode | integer | Margin mode: 1=isolated, 2=cross |
| data.position_action | integer | Position action: 1=open, 2=close |
| data.position_side | integer | Position side: 1=long, 2=short |
| data.created_at | integer | Creation time (milliseconds) |
| data.updated_at | integer | Update time (milliseconds) |
Response Example
{
"code": 0,
"message": "success",
"data": {
"id": "1234567890123456789",
"user_id": "user123",
"client_order_id": "my-order-001",
"symbol": "BTC_USDT",
"side": 1,
"type": 1,
"status": 2,
"cancel_reason": "",
"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": 1711929600000
}
}