Today's Orders
GET/api/v1.0/sim-trade/{acc_id}/ordersGet today's order list.
Parameters
| Parameter | Type | Location | Required | Description |
|---|---|---|---|---|
acc_id | string | path | Yes | Business account ID |
market | int | query | Yes | Market (from market_id in the account list) |
Request Example
bash
curl -s "https://webapi.moomoo.com/api/v1.0/sim-trade/80303779/orders?market=1" -H "Authorization: Bearer <AccessToken>" | jqResponse Fields
Returns data.orders[].
| Field | Type | Description |
|---|---|---|
order_id | int64 | Order ID |
side | string | JSON enum name (values 1=buy, 2=sell, 3=short sell, 4=buy back) |
market | string | Market |
symbol | string | Symbol |
stock_name | string | Name |
order_type | string | JSON enum name (values 1=limit, 3=market) |
status | string | JSON enum name (values 2=submitted, 3=partially filled, 4=filled, 5=cancelled, 6=rejected) |
qty | int64 | Order quantity |
cum_qty | int64 | Filled quantity |
price | number | Order price |
avg_fill_price | number | Average fill price |
aux_price | number/null | Stop-loss price |
time_in_force | int64 | Time in force: 0=day, 1=good till cancel (GTC) |
order_trade_time_type | string | JSON enum name (values 0=unset, 1=regular only, 2=include pre/post-market) |
create_time | int64 | Created time (Unix microseconds) |
update_time | int64 | Updated time (Unix microseconds) |
text | string | Remark |
Response Example
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"orders": [
{
"order_id": 1270777,
"side": "BUY",
"market": "HK_STOCK",
"symbol": "00700",
"stock_name": "腾讯控股",
"order_type": "LIMIT",
"status": "FILLED",
"qty": 100,
"cum_qty": 100,
"price": 999,
"avg_fill_price": 448.2,
"create_time": 1781578935000000,
"update_time": 1781578935000000
}
]
}
}Error response
HTTP status remains 200. A failed request returns ret_code != 0 and an error object.
json
{
"ret_code": -3,
"ret_msg": "invalid request",
"error": {"code": "invalid_parameter", "message": "invalid request"}
}