订单的交易记录
订单的交易记录
(鉴权类型:KEYED, 参见接口权限)
请求格式
GET https://api-cloud.bitmart.com/contract/v1/ifcontract/orderTrades
请求限制
参见 速率限制详细
请求参数
参数 | 类型 | 是否必须 | 描述 |
---|---|---|---|
contractID | long | 是 | 合约 ID |
orderID | long | 是 | 订单 ID |
解释说明
请求示例
curl https://api-cloud.bitmart.com/contract/v1/ifcontract/orderTrades?contractID=1&orderID=2064344648
响应详情
字段 | 类型 | 描述 |
---|---|---|
order_id | long | 订单ID |
trade_id | long | trade id |
contract_id | ing | 合约 ID |
deal_price | string | 成交价 |
deal_vol | string | 成交量 |
make_fee | string | make 手续费 |
take_fee | string | take 手续费 |
created_at | string | 创建时间 |
way | int | 交易方向 1 : 开多 买 2 : 平空 买 3 : 平多 卖 4 : 开空 卖 |
fluctuation | string | 对行情的影响 |
备注
fluctuation,对行情的影响,如本次交易前的最新交易价是 10,本次交易的交易价是 11,则 fluctuation 为"1"
用户必须登录后,才能查询到自己订单的交易记录
返回数据格式示例
{
"code": 1000,
"trace":"886fb6ae-456b-4654-b4e0-d681ac05cea1",
"message": "OK",
"data": {
"trades": [
{
"order_id": 10116361,
"trade_id": 10116363,
"contract_id": 1,
"deal_price": "16",
"deal_vol": "10",
"make_fee": "0.04",
"take_fee": "0.12",
"created_at": "2020-05-13T08:51:15.59541Z",
"way": 5,
"fluctuation": "0"
}
]
}
}