查询订单详情
查询订单详情
(鉴权类型:KEYED, 参见接口权限)
请求格式
GET https://api-cloud.bitmart.com/contract/v1/ifcontract/userOrderInfo
请求限制
参见 速率限制详细
请求参数
参数 | 类型 | 是否必须 | 描述 |
---|---|---|---|
contractID | long | 是 | 合约 ID |
orderID | long | 是 | 订单 ID |
解释说明
请求示例
curl https://api-cloud.bitmart.com/contract/v1/ifcontract/userOrderInfo?contractID=1&orderID=10539098
响应详情
字段 | 类型 | 描述 |
---|---|---|
order_id | long | 订单 ID |
contract_id | long | 合约 ID |
position_id | long | 仓位 ID |
account_id | long | 账号 ID |
price | string | 价格 |
vol | string | 成交量 |
done_avg_price | string | 已完成均价 |
done_vol | string | 已完成量 |
way | int | 订单方向 |
1:开多 | ||
2:平空 | ||
3:平多 | ||
4:开空 | ||
category | int | 订单类型 |
1:限价单 | ||
2:市价单 | ||
make_fee | string | make 手续费 |
take_fee | string | take 手续费 |
origin | string | 来源 |
created_at | string | 创建时间 |
finished_at | string | 完成时间 |
status | int | 状态 |
errno | int | 错误码 |
返回数据格式示例
{
"code": 1000,
"trace":"886fb6ae-456b-4654-b4e0-d681ac05cea1",
"message": "OK",
"data": {
"orders": [
{
"order_id": 10539098,
"contract_id": 1,
"position_id": 10539088,
"account_id": 10,
"price": "16",
"vol": "1",
"done_avg_price": "16",
"done_vol": "1",
"way": 3,
"category": 1,
"make_fee": "0.00025",
"take_fee": "0.012",
"origin": "",
"created_at": "2018-07-23T11:55:56.715305Z",
"finished_at": "2018-07-23T11:55:56.763941Z",
"status": 4,
"errno": 0
}
]
}
}