> ## 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/fundingRate:BTCUSDT"]
}
```

> 数据请求

```json theme={null}
{ 
  "action": "request", 
  "args":["futures/fundingRate:BTCUSDT"]
}
```

消息格式:

`{"action": "<op>", "args": ["<channel:symbol>"]}`

* op: `subscribe`=订阅,会收到一个订阅成功的消息及资金费率数据，而后会收到定时推送的资金费率数据, `request`=单次请求最新资金费率数据,会马上收到一个资金费率数据
* channel:频道名, 如`futures/fundingRate`
* symbol: 交易对, 如`BTCUSDT`

### 返回

> 资金费率数据

```json theme={null}
{
    "data": {
        "symbol": "BTCUSDT",
        "fundingRate": "0.000098800809",
        "fundingTime": 1732525864000,
        "nextFundingRate": "0.0000947",
        "nextFundingTime": 1732550400000,
        "funding_upper_limit": "0.0375",
        "funding_lower_limit": "-0.0375",
        "ts": 1732525864601
    },
    "group": "futures/fundingRate:BTCUSDT"
}
```

返回data字段说明:

| 字段                    | 类型     | 描述                |
| :-------------------- | :----- | :---------------- |
| symbol                | String | 合约交易对（如`BTCUSDT`） |
| fundingRate           | String | 当前资金费率            |
| fundingTime           | Long   | 当前资金费率时间戳(精确到毫秒)  |
| nextFundingRate       | String | 下一次资金费率           |
| nextFundingTime       | Long   | 下一次资金费率时间戳(精确到毫秒) |
| funding\_upper\_limit | String | 下一次资金费率上限         |
| funding\_lower\_limit | String | 下一次资金费率下限         |
| ts                    | Long   | 数据返回时间戳(精确到毫秒)    |
