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.
【私有】仓位频道
仓位变化推送频道推送规则
- 需用户登录
- 订阅后有变化才推送
请求
请求
{"action":"subscribe","args":["<channel>"]}
- action:
subscribe - channel: 频道名, 如
futures/position, 固定值
返回
返回
| 字段 | 数据类型 | 描述 |
|---|---|---|
| symbol | String | 合约交易对(如 BTCUSDT) |
| hold_volume | String | 持仓数量 |
| position_type | Int | 仓位类型 - 1=多- 2=空 |
| open_type | Int | 开仓类型 - 1=逐仓- 2=全仓 |
| frozen_volume | String | 冻结量 |
| close_volume | String | 平仓量 |
| hold_avg_price | String | 持仓均价 |
| close_avg_price | String | 平仓均价 |
| open_avg_price | String | 开仓均价 |
| liquidate_price | String | 爆仓价格 |
| create_time | Long | 仓位创建时间(精确到毫秒) |
| update_time | Long | 仓位更新时间(精确到毫秒) |
| position_mode | String | 仓位模式 - hedge_mode- one_way_mode |