推送规则
- 需用户登录
- 订阅后有变化才推送
请求
请求
{"action":"subscribe","args":["<channel>"]}
- action:
subscribe - channel: 频道名, 如
futures/position, 固定值
返回
返回
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
请求
{
"action":"subscribe",
"args":["futures/position"]
}
{"action":"subscribe","args":["<channel>"]}
subscribefutures/position, 固定值返回
{
"group": "futures/position",
"data": [
{
"symbol": "BTCUSDT",
"hold_volume": "2000",
"position_type": 1,
"open_type": 1,
"frozen_volume": "0",
"close_volume": "0",
"hold_avg_price": "19406.2092",
"close_avg_price": "0",
"open_avg_price": "19406.2092",
"liquidate_price": "15621.998406",
"create_time": 1662692862255,
"update_time": 1662692862255,
"position_mode": "hedge_mode"
}
]
}
| 字段 | 数据类型 | 描述 |
|---|---|---|
| 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 |