跳到主要内容

合约主动买卖量

接口描述

主动买入量:展示单位时间内主动买盘(Taker吃单买入)的成交量。 主动卖出量:展示单位时间内主动卖盘(Taker吃单卖出)的成交量。

HTTP请求

GET /futures/data/takerBuySellVol

请求权重

1

请求参数

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

响应示例

[  
{
"pair": "BTCUSD",
"contractType": CURRENT_QUARTER,
"takerBuyVol": "387", //unit: cont
"takerSellVol": "248", //unit: cont
"takerBuyVolValue": "2342.1220", //unit: base asset
"takerSellVolValue": "4213.9800", //unit: base asset
"timestamp": 1591261042378
},
{
"pair": "BTCUSD",
"contractType": CURRENT_QUARTER,
"takerBuyVol": "234", //unit: cont
"takerSellVol": "121", //unit: cont
"takerBuyVolValue": "4563.1320", //unit: base asset
"takerSellVolValue": "3313.3940", //unit: base asset
"timestamp": 1585615200000
}
]