跳到主要内容

查询订单详情

查询订单详情

描述

该接口用于订单详情查询。

HTTP请求

  • GET /api/v3/stockplus/trade/order-detail
  • 限频规则: 30秒内累计不超过30次调用,且每两次调用之间间隔不小于0.02秒
  • 权限: 统一账户交易只读权限
请求示例
curl "https://api.bitget.com/api/v3/stockplus/trade/order-detail?orderId=701276261045858304" \
-H "ACCESS-KEY:your apiKey" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:zh-CN" \
-H "Content-Type: application/json"

请求参数

参数名参数类型是否必须描述
orderIdString订单 ID,例如:
701276261045858304
返回示例
{
"code": "00000",
"msg": "success",
"requestTime": 1740000000000,
"data": {
"orderId": "701276261045858304",
"status": "Filled",
"stockName": "Apple Inc.",
"quantity": 1,
"executedQuantity": 0,
"price": 150.00,
"executedPrice": null,
"submittedAt": "2024-12-16T12:07:12Z",
"side": "Buy",
"symbol": "AAPL.US",
"orderType": "LO",
"lastDone": null,
"triggerPrice": null,
"msg": "",
"tag": "Normal",
"timeInForce": "Day",
"expireDate": "2024-12-16",
"updatedAt": null,
"triggerAt": null,
"trailingAmount": null,
"trailingPercent": null,
"limitOffset": null,
"triggerStatus": null,
"currency": "USD",
"outsideRth": "RTHOnly",
"remark": "remark from Java SDK",
"limitDepthLevel": null,
"triggerCount": null,
"monitorPrice": null,
"freeStatus": "None",
"freeAmount": null,
"freeCurrency": null,
"deductionsStatus": "None",
"deductionsAmount": null,
"deductionsCurrency": null,
"platformDeductedStatus": "None",
"platformDeductedAmount": null,
"platformDeductedCurrency": null,
"history": [
{
"price": 10.0000,
"quantity": 1,
"status": "Filled",
"msg": "",
"time": "2024-12-16T12:07:12Z"
},
{
"price": 80.0000,
"quantity": 1,
"status": "New",
"msg": "",
"time": "2024-12-16T12:06:55Z"
}
],
"chargeDetail": {
"totalAmount": 0.00,
"currency": "USD",
"items": [
{
"code": "Broker",
"name": "Broker Fees",
"fees": []
},
{
"code": "Third",
"name": "Third-party Fees",
"fees": []
}
]
}
}
}

返回参数

返回字段参数类型字段说明
orderIdString订单 ID
statusString订单状态
NotReported - 待报
ReplacedNotReported - 已修改待报
ProtectedNotReported - 已保护待报
VarietiesNotReported - 品种待报
Filled - 全部成交
WaitToNew - 等待新单
New - 已报
WaitToReplace - 等待修改
PendingReplace - 修改中
Replaced - 已修改
PartialFilled - 部分成交
WaitToCancel - 等待撤销
PendingCancel - 撤销中
Rejected - 已拒绝
Canceled - 已撤销
Expired - 已过期
PartialWithdrawal - 部分撤单
stockNameString股票名称
quantityString委托数量
executedQuantityString成交数量。未成交的订单为 "0"
priceString委托价格。市价条件单未触发时为 null
executedPriceString成交价格。未成交的订单为 null
submittedAtString订单提交时间
sideString买卖方向。Buy - 买入,Sell - 卖出
symbolString股票代码,使用 ticker.region 格式,例如:
AAPL.US
orderTypeString订单类型
lastDoneString最新成交价。未成交的订单为 null
triggerPriceStringLIT/MIT 订单触发价格。非条件单为 null
msgString拒绝原因或备注。默认空字符串
tagString订单标签
Normal - 普通订单
GTC - GTC 订单
timeInForceString订单有效期类型
Day - 当日有效
GoodTilCanceled - 撤单前有效
GoodTilDate - 到期前有效
expireDateString长期单过期时间,格式为 YYYY-MM-DD。非 GTD 订单为空
updatedAtString最后更新时间(ISO 8601)。未更新时为 null
triggerAtString条件单触发时间,单位为(ISO 8601)
trailingAmountStringTSLPAMT 订单跟踪金额。非 TSLPAMT 订单为 null
trailingPercentStringTSLPPCT 订单跟踪涨跌幅。非 TSLPPCT 订单为 null
limitOffsetStringTSLPAMT/TSLPPCT 订单价差。非 TSLP 订单为 null
triggerStatusString条件单触发状态。非条件单为 null
NOT_USED - 未启用
DEACTIVE - 已失效
ACTIVE - 生效中
RELEASED - 已触发
currencyString结算货币
outsideRthString是否允许盘前盘后交易。非美股订单为 UnknownOutsideRth
RTHOnly - 不允许盘前盘后
AnyTime - 允许盘前盘后
Overnight - 夜盘
remarkString备注
limitDepthLevelNumber指定买卖档位
triggerCountNumber触发次数
monitorPriceString监控价格
freeStatusString免佣状态。默认 None
None - 无
Calculated - 待计算
Pending - 待发放
Ready - 已发放
freeAmountString免佣金额。默认 null
freeCurrencyString免佣币种。默认 null
deductionsStatusString扣款/返佣状态。默认 None
None - 待结算/无数据
Pending - 已结算,待发放
Done - 已结算,已发放
deductionsAmountString扣款金额。默认 null
deductionsCurrencyString扣款币种。默认 null
platformDeductedStatusString平台费扣款/返佣状态。默认 None
None - 待结算/无数据
Pending - 已结算,待发放
Done - 已结算,已发放
platformDeductedAmountString平台费扣款金额。默认 null
platformDeductedCurrencyString平台费扣款币种。默认 null
historyList<Object>订单历史详情
> priceNumber交易展示价格(成交时),提交价格(过期/撤销/拒绝时)
> quantityNumber交易展示数量(成交时),剩余数量(过期/撤销/拒绝时)
> statusString订单状态
> msgString交易或错误信息
> timeString发生时间
chargeDetailObject订单费用
> totalAmountNumber总费用
> currencyString结算货币
> itemsList<Object>订单费用明细
>> codeString费用类别编码
Broker
Third
>> nameString费用类别名称
>> feesList<Object>费用明细
>>> codeString费用项编码
>>> nameString费用项名称
>>> amountNumber单项费用金额
>>> currencyString费用币种