美股历史委托
Longbridge US 账户
此方法仅适用于美国数据中心账户。
查询美股账户的历史委托和待成交委托,支持分页和筛选。
SDK Links
Parameters
SDK 方法参数。
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| symbol | string | 否 | 按标的筛选,例如 AAPL.US |
| action | int | 否 | 方向筛选:0=全部,1=买入,2=卖出(默认:0) |
| start_at | int64 | 否 | 开始时间(Unix 秒);0 = 最近 90 天 |
| end_at | int64 | 否 | 结束时间(Unix 秒);0 = 当前时间 |
| query_type | int32 | 否 | 0=全部,1=待成交,2=已成交(默认:0) |
| page | int32 | 否 | 页码,从 1 开始(默认:1) |
| limit | int32 | 否 | 每页数量(默认:20) |
Request Example
Response
Response Example
json
{
"orders": [
{
"id": "701276261045858304",
"symbol": "AAPL.US",
"action": "Buy",
"order_type": "LO",
"status": "Filled",
"price": "185.00",
"quantity": "10",
"submitted_at": 1751866334,
"updated_at": 1751866400
}
],
"total_count": 1
}Response Status
| 状态码 | 描述 | 结构 |
|---|---|---|
| 200 | 成功 | QueryUSOrdersResponse |
| 400 | 请求错误 | None |
Schemas
QueryUSOrdersResponse
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| orders | USOrder[] | 是 | 符合筛选条件的委托列表 |
| total_count | int | 是 | 满足条件的委托总数 |
USOrder
| 名称 | 类型 | 描述 |
|---|---|---|
| id | string | 委托 ID |
| symbol | string | 交易标的,如 AAPL.US |
| action | string | 方向:Buy 或 Sell |
| order_type | string | 委托类型 |
| status | string | 委托状态 |
| price | string | 委托价格 |
| quantity | string | 委托数量 |
| submitted_at | int64 | 提交时间(Unix 秒) |
| updated_at | int64 | 最后更新时间(Unix 秒) |