> ## 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. 订阅后有变化才推送

### 请求

> 请求

```json theme={null}
{
    "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(币本位)

### 返回

> 返回

```json theme={null}
{
  "group": "futures/asset:BTC",
  "data": {
    "currency": "BTC",
    "available_balance": "1000",
    "position_deposit": "1000",
    "frozen_balance": "1000"
  }
}
```

返回data字段说明:

| 字段                 | 数据类型   | 描述     |
| ------------------ | ------ | ------ |
| currency           | String | 币种     |
| available\_balance | String | 可用金额   |
| position\_deposit  | String | 仓位保证金  |
| frozen\_balance    | String | 交易冻结金额 |
