Skip to content

Order History

GET /api/v1/crypto/accounts/{acc_id}/orders/history

Query completed historical orders with multi-dimensional filtering. The query range must not exceed 3 months.

Path Parameters

ParameterTypeRequiredDescription
acc_iduint64YesAccount ID

Request Parameters

ParameterTypeLocationRequiredDescription
start_timeint64QueryYesStart time (Unix microsecond timestamp). Must not be 0.
end_timeint64QueryYesEnd time (Unix microsecond timestamp). Must not be 0.
page_sizeuint32QueryNoNumber of results per page. Maximum 50, default 50.
page_flagstringQueryNoPagination cursor. Omit on first request.
symbolstringQueryNoFilter by trading pair, e.g. BTCUSD
order_statusstring[]QueryNoFilter by order status. Multiple values allowed (repeat parameter name). See Naming Dictionary for valid values.
currencystring[]QueryNoFilter by settlement currency. Multiple values allowed (repeat parameter name).
sidestring[]QueryNoFilter by trade direction. Multiple values allowed (repeat parameter name). See Naming Dictionary for valid values.
ord_typestring[]QueryNoFilter by order type. Multiple values allowed (repeat parameter name). See Naming Dictionary for valid values.

Response Parameters

FieldTypeDescription
orderslist[OrderItem]Order list, sorted by creation time in descending order
page_flagstringPagination cursor for the next request
completedbooltrue 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."
}