Order Detail
Get detailed order information by order ID.
API Information
- Method:
GET - Path:
/api/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 /api/v1/orders/1234567890123456789
Response Fields
| Field | Type | Description |
|---|---|---|
| code | integer | Status code |
| message | string | Response message |
| data.id | string | Order ID |
| data.client_order_id | string | Client order ID |
| data.user_id | string | User ID |
| data.symbol | string | Trading pair |
| data.side | integer | Side: 1=buy, 2=sell |
| data.type | integer | Type: 1=limit, 2=market buy, 3=market sell |
| data.status | integer | Status: 1=new, 2=partially filled, 3=fully filled, 4=canceled |
| data.price | string | Order price |
| data.qty | string | Order quantity |
| data.quote_qty | string | Order amount |
| data.filled_qty | string | Filled quantity |
| data.filled_quote | string | Filled amount |
| data.avg_price | string | Average filled price |
| data.total_fee | string | Total fee |
| data.fee_asset | string | Fee asset |
| data.cancel_reason | string | Cancel reason: USER / SELF_TRADE / NO_LIQUIDITY / IOC / FOK / MODIFY |
| data.created_at | integer | Creation time (milliseconds) |
| data.updated_at | integer | Update time (milliseconds) |
Response Example
{
"code": 0,
"message": "success",
"data": {
"id": "1234567890123456789",
"client_order_id": "my-order-001",
"user_id": "user123",
"symbol": "BTC/USDT",
"side": 1,
"type": 1,
"status": 2,
"price": "30000",
"qty": "0.1",
"quote_qty": "0",
"filled_qty": "0.05",
"filled_quote": "1500",
"avg_price": "30000",
"total_fee": "0.0001",
"fee_asset": "BTC",
"cancel_reason": "USER",
"created_at": 1704067200000,
"updated_at": 1704067200000
}
}