跳转到主要内容

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.

【私有】资产频道

资产余额变动频道

推送规则

  1. 需用户登录
  2. 订阅后有变化才推送

请求

请求
{
    "action":"subscribe",
    "args":["futures/asset:USDT", "futures/asset:BTC", "futures/asset:ETH"]
}
消息格式: {"action":"subscribe","args":["<channel:currency>","<channel:currency>"]}
  • action: subscribe
  • channel: 频道名, 如futures/asset, 固定值
  • currency: 币种, 如BTC, 支持订阅的资产类型有:USDT(U本位)、BTC(币本位)、ETH(币本位)

返回

返回
{
  "group": "futures/asset:BTC",
  "data": {
    "currency": "BTC",
    "available_balance": "1000",
    "position_deposit": "1000",
    "frozen_balance": "1000"
  }
}
返回data字段说明:
字段数据类型描述
currencyString币种
available_balanceString可用金额
position_depositString仓位保证金
frozen_balanceString交易冻结金额