多空持仓人数比
接口描述
多空持仓人数比
HTTP请求
GET /futures/data/globalLongShortAccountRatio
请求权重
1
请求参数
名称 | 类型 | 是否必需 | 描述 |
---|---|---|---|
pair | STRING | YES | BTCUSD |
period | ENUM | YES | "5m","15m","30m","1h","2h","4h","6h","12h","1d" |
limit | LONG | NO | Default 30,Max 500 |
startTime | LONG | NO | |
endTime | LONG | NO |
- 若无 startime 和 endtime 限制, 则默认返回当前时间往前的limit值
- 仅支持最近30天的数据
响应示例
[
{
"pair": "BTCUSD",
"longShortRatio": "0.1960",
"longAccount": "0.6622", //66.22%
"shortAccount": "0.3378", //33.78%
"timestamp": 1583139600000
},
{
"pair": "BTCUSD",
"longShortRatio": "1.9559",
"longAccount": "0.6617",
"shortAccount": "0.3382",
"timestamp": 1583139900000
}
]