查询订单详情
查询订单详情
描述
该接口用于订单详情查询。
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"
请求参数
| 参数名 | 参数类型 | 是否必须 | 描述 |
|---|---|---|---|
| orderId | String | 是 | 订单 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": []
}
]
}
}
}
返回参数
| 返回字段 | 参数类型 | 字段说明 |
|---|---|---|
| orderId | String | 订单 ID |
| status | String | 订单状态NotReported - 待报ReplacedNotReported - 已修改待报ProtectedNotReported - 已保护待报VarietiesNotReported - 品种待报Filled - 全部成交WaitToNew - 等待新单New - 已报WaitToReplace - 等待修改PendingReplace - 修改中Replaced - 已修改PartialFilled - 部分成交WaitToCancel - 等待撤销PendingCancel - 撤销中Rejected - 已拒绝Canceled - 已撤销Expired - 已过期PartialWithdrawal - 部分撤单 |
| stockName | String | 股票名称 |
| quantity | String | 委托数量 |
| executedQuantity | String | 成交数量。未成交的订单为 "0" |
| price | String | 委托价格。市价条件单未触发时为 null |
| executedPrice | String | 成交价格。未成交的订单为 null |
| submittedAt | String | 订单提交时间 |
| side | String | 买卖方向。Buy - 买入,Sell - 卖出 |
| symbol | String | 股票代码,使用 ticker.region 格式,例如:AAPL.US |
| orderType | String | 订单类型 |
| lastDone | String | 最新成交价。未成交的订单为 null |
| triggerPrice | String | LIT/MIT 订单触发价格。非条件单为 null |
| msg | String | 拒绝原因或备注。默认空字符串 |
| tag | String | 订单标签Normal - 普通订单GTC - GTC 订单 |
| timeInForce | String | 订单有效期类型Day - 当日有效GoodTilCanceled - 撤单前有效GoodTilDate - 到期前有效 |
| expireDate | String | 长期单过期时间,格式为 YYYY-MM-DD。非 GTD 订单为空 |
| updatedAt | String | 最后更新时间(ISO 8601)。未更新时为 null |
| triggerAt | String | 条件单触发时间,单位为(ISO 8601) |
| trailingAmount | String | TSLPAMT 订单跟踪金额。非 TSLPAMT 订单为 null |
| trailingPercent | String | TSLPPCT 订单跟踪涨跌幅。非 TSLPPCT 订单为 null |
| limitOffset | String | TSLPAMT/TSLPPCT 订单价差。非 TSLP 订单为 null |
| triggerStatus | String | 条件单触发状态。非条件单为 nullNOT_USED - 未启用DEACTIVE - 已失效ACTIVE - 生效中RELEASED - 已触发 |
| currency | String | 结算货币 |
| outsideRth | String | 是否允许盘前盘后交易。非美股订单为 UnknownOutsideRthRTHOnly - 不允许盘前盘后AnyTime - 允许盘前盘后Overnight - 夜盘 |
| remark | String | 备注 |
| limitDepthLevel | Number | 指定买卖档位 |
| triggerCount | Number | 触发次数 |
| monitorPrice | String | 监控价格 |
| freeStatus | String | 免佣状态。默认 NoneNone - 无Calculated - 待计算Pending - 待发放Ready - 已发放 |
| freeAmount | String | 免佣金额。默认 null |
| freeCurrency | String | 免佣币种。默认 null |
| deductionsStatus | String | 扣款/返佣状态。默认 NoneNone - 待结算/无数据Pending - 已结算,待发放Done - 已结算,已发放 |
| deductionsAmount | String | 扣款金额。默认 null |
| deductionsCurrency | String | 扣款币种。默认 null |
| platformDeductedStatus | String | 平台费扣款/返佣状态。默认 NoneNone - 待结算/无数据Pending - 已结算,待发放Done - 已结算,已发放 |
| platformDeductedAmount | String | 平台费扣款金额。默认 null |
| platformDeductedCurrency | String | 平台费扣款币种。默认 null |
| history | List<Object> | 订单历史详情 |
| > price | Number | 交易展示价格(成交时),提交价格(过期/撤销/拒绝时) |
| > quantity | Number | 交易展示数量(成交时),剩余数量(过期/撤销/拒绝时) |
| > status | String | 订单状态 |
| > msg | String | 交易或错误信息 |
| > time | String | 发生时间 |
| chargeDetail | Object | 订单费用 |
| > totalAmount | Number | 总费用 |
| > currency | String | 结算货币 |
| > items | List<Object> | 订单费用明细 |
| >> code | String | 费用类别编码BrokerThird |
| >> name | String | 费用类别名称 |
| >> fees | List<Object> | 费用明细 |
| >>> code | String | 费用项编码 |
| >>> name | String | 费用项名称 |
| >>> amount | Number | 单项费用金额 |
| >>> currency | String | 费用币种 |