History Orders
GET/api/v1.0/sim-trade/{acc_id}/history-ordersGet historical orders (supports time range + pagination).
Parameters
| Parameter | Type | Location | Required | Description |
|---|---|---|---|---|
acc_id | string | path | Yes | Business account ID |
time_begin | int | query | No | Start time (microseconds) |
time_end | int | query | No | End time (microseconds) |
page_size | int | query | No | Page size (default 50) |
next_key | string | query | No | Pagination cursor |
Request Example
bash
curl -s "https://webapi.moomoo.com/api/v1.0/sim-trade/80303779/history-orders?page_size=10" | jqResponse Fields
Order fields are the same as Today's Orders, with additional pagination info: pagination.has_more (bool), pagination.next_key (string).
Response Example
json
{
"ret_code": 0,
"data": {
"orders": [],
"pagination": {
"has_more": false,
"next_key": ""
}
}
}