Skip to content

History Orders

GET /api/v1.0/sim-trade/{acc_id}/history-orders

Get historical orders (supports time range + pagination).

Parameters

ParameterTypeLocationRequiredDescription
acc_idstringpathYesBusiness account ID
time_beginintqueryNoStart time (microseconds)
time_endintqueryNoEnd time (microseconds)
page_sizeintqueryNoPage size (default 50)
next_keystringqueryNoPagination cursor

Request Example

bash
curl -s "https://webapi.moomoo.com/api/v1.0/sim-trade/80303779/history-orders?page_size=10" | jq

Response 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": ""
    }
  }
}