美股委托详情
Longbridge US 账户
此方法仅适用于美国数据中心账户。
获取美股指定委托的详情,包括成交历史,可选获取关联子委托。
SDK Links
Parameters
SDK 方法参数。
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| order_id | string | 是 | 委托 ID |
Request Example
Response
Response Example
json
{
"order": {
"id": "701276261045858304",
"symbol": "AAPL.US",
"action": "Buy",
"order_type": "LO",
"status": "Filled",
"price": "185.00",
"quantity": "10",
"executed_qty": "10",
"executed_price": "184.95",
"executed_amount": "1849.50",
"currency": "USD",
"submitted_at": "1751866334",
"done_at": "1751866400",
"time_in_force": 0,
"msg": ""
},
"current_attached_order": null,
"current_millisecond": "1751866400000"
}Response Status
| 状态码 | 描述 | 结构 |
|---|---|---|
| 200 | 成功 | USOrderDetailResponse |
| 400 | 请求错误 | None |
USOrderDetailResponse
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| order | USOrderDetail | null | 是 | 完整委托详情,未找到时为 null |
| current_attached_order | USOrderDetail | null | 否 | 关联子委托(括号单/OCO) |
| current_millisecond | string | 否 | 服务器时间戳(毫秒) |
USOrderDetail
核心字段(完整响应包含 50+ 个字段,涵盖费用、触发条件和结算详情):
| 名称 | 类型 | 描述 |
|---|---|---|
| id | string | 委托 ID |
| symbol | string | 交易标的,如 AAPL.US |
| action | int | 方向:1=买入,2=卖出 |
| order_type | string | 委托类型 |
| status | string | 委托状态 |
| price | string | 委托价格 |
| quantity | string | 委托数量 |
| executed_qty | string | 已成交数量 |
| executed_price | string | 平均成交价格 |
| executed_amount | string | 成交总金额 |
| currency | string | 货币代码 |
| submitted_at | string | 提交时间 |
| done_at | string | 完成时间 |
| time_in_force | int | 有效期类型 |
| trigger_price | string | 触发价格(止损/止盈单) |
| msg | string | 状态消息 |
| order_histories | USOrderHistory[] | 委托状态变更历史 |
| attached_orders | USAttachedOrder[] | 关联子委托列表 |
| button_control | USButtonControl | 可用操作按钮状态 |
| charge_detail | USChargeDetail | null | 费用明细 |
USOrderHistory
| 名称 | 类型 | 描述 |
|---|---|---|
| exec_type | int | 执行类型 |
| status | string | 当前节点委托状态 |
| price | string | 价格 |
| qty | string | 数量 |
| time | string | 时间戳 |
| msg | string | 消息 |