Active Orders
GET/api/v1/crypto/accounts/{acc_id}/ordersQuery the list of open (unfilled) orders for a specified account.
Note
Open orders include those with status PENDING_TRIGGER, PENDING_NEW, NEW, and PARTIAL_FILLED.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
acc_id | uint64 | Yes | Account ID |
Request Parameters
| Parameter | Type | Location | Required | Description |
|---|---|---|---|---|
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. |
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?page_size=20" \
-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": 1,
"symbol_pair": { "symbol": "BTCUSD", "base": "BTC", "quote": "USD" },
"side": "BUY",
"order_qty": "0.01",
"price": "30000",
"order_amount": "300.00",
"cum_qty": "0",
"avg_px": "0",
"fill_amount": "0",
"ord_type": "LIMIT",
"time_in_force": "TIF_GTC",
"create_time": 1750000000000000,
"update_time": 1750000000000000,
"ord_status": "NEW",
"order_show_id": "SHOW-001",
"is_close": false,
"trigger_price": "",
"trigger_time": 0,
"cash_order_qty": ""
}
],
"page_flag": "",
"completed": true
}
}Error Response:
json
{
"code": 1,
"msg": "Error Message."
}