获取订单详情
获取订单详情
(鉴权类型:KEYED, 参见接口权限)
请求格式
GET https://api-cloud.bitmart.com/spot/v1/order_detail
请求限制
参见 速率限制详细
请求参数
字段 | 类型 | 是否必填 | 描述 |
---|---|---|---|
symbol | string | 必填 | 交易对(如:BTC_USDT) |
order_id | long | 必填 | 订单 id |
请求示例
curl https://api-cloud.bitmart.com/spot/v1/order_detail?symbol=BTC_USDT&order_id=1736871726781
响应详情
字段 | 类型 | 描述 |
---|---|---|
order_id | long | 订单ID |
symbol | string | 交易对(如:BMX_USDT) |
create_time | long | 时间戳,精确到毫秒 |
side | string | 类型 |
buy =买入 |
||
sell =卖出 |
||
type | string | 订单类型 |
limit =限价单 |
||
market =市价单 |
||
price | string | 委托价格 |
price_avg | string | 成交均价 |
size | string | 委托数量(交易货币) |
notional | string | 买入金额,单位计价币种(特例:市价单卖的时候为交易币种) |
filled_notional | string | 已成交金额 |
filled_size | string | 已成交数量 |
status | string | 状态 |
1 =下单失败 |
||
2 =创建订单中 |
||
3 =下单失败,冻结失败 |
||
4 =下单成功,等待成交 |
||
5 =部分成交 |
||
6 =完全成交 |
||
7 =撤销中 |
||
8 =撤销成功 |
返回数据格式示
{
"message":"OK",
"code":1000,
"trace":"a27c2cb5-ead4-471d-8455-1cfeda054ea6",
"data":{
"order_id":1736871726781,
"symbol":"BTC_USDT",
"create_time":1591096004000,
"side":"sell",
"type":"market",
"price":"0.00",
"price_avg":"0.00",
"size":"0.02000",
"notional":"0.00000000",
"filled_notional":"0.00000000",
"filled_size":"0.00000",
"status":"8"
}
}