跳到主要内容

基差

接口描述

查询基差

HTTP请求

GET /futures/data/basis

请求权重

1

请求参数

名称类型是否必需描述
pairSTRINGYESBTCUSD
contractTypeENUMYESCURRENT_QUARTER, NEXT_QUARTER, PERPETUAL
periodENUMYES"5m","15m","30m","1h","2h","4h","6h","12h","1d"
limitLONGNODefault 30,Max 500
startTimeLONGNO
endTimeLONGNO
  • 若无 startime 和 endtime 限制, 则默认返回当前时间往前的limit值
  • 仅支持最近30天的数据

响应示例

[  
{
"indexPrice": "29269.93972727",
"contractType": "CURRENT_QUARTER",
"basisRate": "0.0024",
"futuresPrice": "29341.3",
"annualizedBasisRate": "0.0283",
"basis": "71.36027273",
"pair": "BTCUSD",
"timestamp": 1653381600000
}
]