跳转到主要内容

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/fundingRate:BTCUSDT"]
}
数据请求
{ 
  "action": "request", 
  "args":["futures/fundingRate:BTCUSDT"]
}
消息格式: {"action": "<op>", "args": ["<channel:symbol>"]}
  • op: subscribe=订阅,会收到一个订阅成功的消息及资金费率数据,而后会收到定时推送的资金费率数据, request=单次请求最新资金费率数据,会马上收到一个资金费率数据
  • channel:频道名, 如futures/fundingRate
  • symbol: 交易对, 如BTCUSDT

返回

资金费率数据
{
    "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字段说明:
字段类型描述
symbolString合约交易对(如BTCUSDT
fundingRateString当前资金费率
fundingTimeLong当前资金费率时间戳(精确到毫秒)
nextFundingRateString下一次资金费率
nextFundingTimeLong下一次资金费率时间戳(精确到毫秒)
funding_upper_limitString下一次资金费率上限
funding_lower_limitString下一次资金费率下限
tsLong数据返回时间戳(精确到毫秒)