Order History
Query a list of completed or cancelled orders.
Interface Information
- Method:
GET - Path:
/api/v1/stock/open-api/historyOrders
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | No | Stock symbol |
| side | string | No | Direction filter |
| startTime | int64 | No | Start time (millisecond timestamp) |
| endTime | int64 | No | End time (millisecond timestamp) |
| page | int | No | Page number, default 1 |
| size | int | No | Number per page, default 20, max 100 |
Request Example
GET /api/v1/stock/open-api/historyOrders?symbol=AAPL&startTime=1705737600000&endTime=1705824000000&page=1&size=20
Response Fields
| Field | Type | Description |
|---|---|---|
| code | int | Status code |
| msg | string | Status message |
| data.orders | array | Order list |
| data.total | int | Total count |
| data.page | int | Current page |
| data.size | int | Number per page |
See "Order Detail" interface for order object fields
Response Example
{
"code": 0,
"msg": "success",
"data": {
"orders": [
{
"orderId": "123456789",
"symbol": "AAPL",
"side": "buy",
"type": "limit",
"price": "185.50",
"quantity": "1000",
"filledQty": "1000",
"status": "filled",
"createdAt": 1705737600000,
"updatedAt": 1705737700000
}
],
"total": 1,
"page": 1,
"size": 20
}
}