跳轉到內容

美股委託詳情

Longbridge US 賬戶

此方法僅適用於美國數據中心賬戶。

獲取美股指定委託的詳情,包括成交歷史,可選獲取關聯子委託。

CLI
# 查看美股委託詳情
longbridge order detail 701276261045858304

Parameters

SDK 方法參數。

名稱類型必填描述
order_idstring委託 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

名稱類型必填描述
orderUSOrderDetail | null完整委託詳情,未找到時為 null
current_attached_orderUSOrderDetail | null關聯子委託(括號單/OCO)
current_millisecondstring服務器時間戳(毫秒)

USOrderDetail

核心字段(完整響應包含 50+ 个字段,涵蓋費用、觸發條件和結算詳情):

名稱類型描述
idstring委託 ID
symbolstring交易標的,如 AAPL.US
actionint方向:1=買入,2=賣出
order_typestring委託類型
statusstring委託狀態
pricestring委託價格
quantitystring委託數量
executed_qtystring已成交數量
executed_pricestring平均成交價格
executed_amountstring成交總金額
currencystring貨幣代碼
submitted_atstring提交時間
done_atstring完成時間
time_in_forceint有效期類型
trigger_pricestring觸發價格(止損/止盈單)
msgstring狀態消息
order_historiesUSOrderHistory[]委託狀態变更历史
attached_ordersUSAttachedOrder[]關聯子委託列表
button_controlUSButtonControl可用操作按鈕狀態
charge_detailUSChargeDetail | null費用明細

USOrderHistory

名稱類型描述
exec_typeint執行類型
statusstring当前节点委託狀態
pricestring价格
qtystring数量
timestring時間戳
msgstring消息