Order History
GET/api/v1/crypto/accounts/{acc_id}/orders/historyQuery completed historical orders with multi-dimensional filtering. The query range must not exceed 3 months.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
acc_id | uint64 | Yes | Account ID |
Request Parameters
| Parameter | Type | Location | Required | Description |
|---|---|---|---|---|
start_time | int64 | Query | Yes | Start time (Unix microsecond timestamp). Must not be 0. |
end_time | int64 | Query | Yes | End time (Unix microsecond timestamp). Must not be 0. |
page_size | uint32 | Query | No | Number of results per page. Maximum 50, default 50. |
page_flag | string | Query | No | Pagination cursor. Omit on first request. |
symbol | string | Query | No | Filter by trading pair, e.g. BTCUSD |
order_status | string[] | Query | No | Filter by order status. Multiple values allowed (repeat parameter name). See Naming Dictionary for valid values. |
currency | string[] | Query | No | Filter by settlement currency. Multiple values allowed (repeat parameter name). |
side | string[] | Query | No | Filter by trade direction. Multiple values allowed (repeat parameter name). See Naming Dictionary for valid values. |
ord_type | string[] | Query | No | Filter by order type. Multiple values allowed (repeat parameter name). See Naming Dictionary for valid values. |
Response Parameters
| Field | Type | Description |
|---|---|---|
orders | list[OrderItem] | Order list, sorted by creation time in descending order |
page_flag | string | Pagination cursor for the next request |
completed | bool | true indicates all data has been returned; the client should stop paginating |
Request Example
bash
curl -X GET "https://webapi.futunn.com/api/v1/crypto/accounts/123456/orders/history?start_time=1750000000000000&end_time=1750086400000000&symbol=BTCUSD&side=BUY&order_status=FILLED&order_status=PARTIAL_FILLED" \
-H "X-Api-Key: <AppKey>" \
-H "X-Timestamp: <timestamp_ms>" \
-H "X-Nonce: <nonce>" \
-H "Authorization: <signature_base64>"Response Example
json
{
"code": 0,
"msg": "success",
"data": {
"orders": [
{
"order_id": "FTHC2989880641155745280T",
"version": 2,
"symbol_pair": { "symbol": "BTCUSD", "base": "BTC", "quote": "USD" },
"side": "BUY",
"order_qty": "0.01",
"price": "30000",
"order_amount": "300.00",
"cum_qty": "0.01",
"avg_px": "30000",
"fill_amount": "300.00",
"ord_type": "LIMIT",
"time_in_force": "TIF_GTC",
"create_time": 1750000000000000,
"update_time": 1750000100000000,
"ord_status": "FILLED",
"order_show_id": "SHOW-001",
"is_close": true,
"trigger_price": "",
"trigger_time": 0,
"cash_order_qty": ""
}
],
"page_flag": "",
"completed": true
}
}Error Response:
json
{
"code": 1,
"msg": "Error Message."
}