今日訂單
GET/api/v1.0/sim-trade/{acc_id}/orders獲取今日訂單列表。
請求參數
| 參數 | 類型 | 位置 | 必填 | 說明 |
|---|---|---|---|---|
acc_id | string | path | 是 | 業務賬戶 ID |
請求示例
bash
curl -s "https://webapi.moomoo.com/api/v1.0/sim-trade/80303779/orders" | jq響應字段
返回 data.orders[]。
| 字段 | 類型 | 說明 |
|---|---|---|
order_id | string | 訂單號 |
side | int | 1=買 2=賣 3=賣空 4=買回 |
symbol | string | 代碼 |
stock_name | string | 名稱 |
order_type | int | 1=限價 3=市價 |
status | int | 2=已提交 3=部分成交 4=全部成交 5=已撤 6=拒絕 |
qty | string | 委託量 |
cum_qty | string | 已成交量 |
price | string | 委託價 |
avg_fill_price | string | 成交均價 |
aux_price | string/null | 止損價 |
create_time | string | 創建時間(微秒) |
update_time | string | 更新時間(微秒) |
text | string | 備註 |
響應示例
json
{
"ret_code": 0,
"data": {
"orders": [
{
"order_id": "1270777",
"side": 1,
"symbol": "00700",
"stock_name": "騰訊控股",
"order_type": 1,
"status": 4,
"qty": "100",
"cum_qty": "100",
"price": "999",
"avg_fill_price": "448.2",
"create_time": "1781578935000000",
"update_time": "1781578935000000"
}
]
}
}