Get Open Orders
GET/api/v1.0/accounts/{acc_id}/ordersQuery the list of open orders for a specified account.
Note
Open orders mean recent orders of an account, including any uncompleted orders and orders that were filled or cancelled in the last 24 hours.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
acc_id | string | Yes | Trading business account ID. |
Request Parameters
| Parameter | Type | Position | Required | Description |
|---|---|---|---|---|
trd_market | string | Query | Yes | Trading market. See Naming Dictionary |
page_flag | string | Query | No | Optional on the first request. Omit it (or send an empty string) to start from the beginning; afterwards pass the page_flag returned by the server. |
page_size | uint32 | Query | No | Page size. Defaults to 50 if omitted; when set, must not exceed 100. |
Response Parameters
| Field | Type | Description |
|---|---|---|
orders | list[order] | By default, 50 orders are returned every time, with the latest order first. |
page_flag | string | Page flag for the next request |
completed | bool | True means that all orders have been returned, and client should stop the request for this batch. |
Response Example
json
{
"s": "ok",
"d": {
"orders": [
{
"side": "BUY",
"order_type": "LIMIT",
"order_status": "SUBMITTED",
"order_id": "2024030100000001",
"code": "US.AAPL",
"exchange": "US",
"stock_name": "Apple Inc.",
"security_type": "STOCK",
"qty": "100",
"price": "180.000",
"currency": "USD",
"create_time": 1709251200000000,
"updated_time": 1709251210000000,
"dealt_qty": "0",
"dealt_avg_price": "0.000",
"last_err_msg": "",
"remark": "",
"time_in_force": "DAY",
"session": "RTH",
"aux_price": "0.000",
"trail_type": "NONE",
"trail_value": "0.000",
"trail_spread": "0.000",
"position_open_type": "",
"algo_info": null
}
],
"page_flag": "",
"completed": true
}
}