Documentation Index
Fetch the complete documentation index at: https://developer.wooxpro.com/llms.txt
Use this file to discover all available pages before exploring further.
查询合约成交明细 (KEYED)
适用于查询某合约订单成交明细
请求URL
GET https://cloud-api.wooxpro.com/contract/private/trades
请求限制
参见 速率限制详细请求参数
请求
| 参数 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| symbol | String | 选填 | 合约交易对(如BTCUSDT) |
| account | String | 选填 | 交易用户 - futures=合约主账号- copy_trading=跟单子账号 |
| start_time | Long | 选填 | 开始时间(时间戳,精确到秒) |
| end_time | Long | 选填 | 结束时间(时间戳,精确到秒) |
| order_id | Long | 选填 | 订单ID |
| client_order_id | String | 选填 | 客户端订单ID |
注意
- 没有填写时间范围
start_time和end_time,默认查询最近7天数据 - 填写时间范围的话,
end_time必须比start_time的值大, 并且start_time和end_time最大支持 90 天的查询间隔 - 每次请求最多返回200条,超过的将不会返回
- 支持查询订单类型:
limit、market、liquidate、bankruptcy、adl、trailing
响应详情
响应
| 字段 | 类型 | 描述 |
|---|---|---|
| symbol | String | 合约交易对(如BTCUSDT) |
| order_id | String | 订单编号 |
| trade_id | String | 成交明细编号 |
| side | Int | 订单方向 双向持仓 - 1=开多- 2=平空- 3=平多- 4=开空单向持仓 - 1=买入- 2=买入(只减仓)- 3=卖出(只减仓)- 4=卖出 |
| price | String | 成交价格 |
| vol | String | 成交量 |
| exec_type | String | 流动性类型 - Taker- Maker |
| profit | Boolean | 是否盈利 |
| realised_profit | String | 已实现盈亏 |
| paid_fees | String | 手续费 |
| account | String | 交易用户 - futures=合约主账号- copy_trading=跟单子账号 |
| create_time | Long | 成交创建时间(ms) |