Fill History
GET/api/v1/crypto/accounts/{acc_id}/fills/historyQuery historical fill records by time range. The query range must not exceed three 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) |
end_time | int64 | Query | Yes | End time (Unix microsecond timestamp) |
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 |
Response Parameters
| Field | Type | Description |
|---|---|---|
fills | list[FillItem] | Fill list |
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/fills/history?start_time=1750000000000000&end_time=1750086400000000&symbol=BTCUSD" \
-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": {
"fills": [
{
"order_id": "FTHC2989880641155745280T",
"fill_id": "FILL-001",
"symbol_pair": { "symbol": "BTCUSD", "base": "BTC", "quote": "USD" },
"side": "BUY",
"quantity": "0.01",
"price": "30000",
"amount": "300.00",
"fill_time": 1750000050000000
}
],
"page_flag": "",
"completed": true
}
}Error Response:
json
{
"code": 1,
"msg": "Error Message."
}