跳到主要内容

持仓量历史

历史持仓量序列。

接口​

GET /openInterestHist

鉴权: 公开。

查询参数​

参数类型必填默认值说明
symbolstring是—大写永续合约符号。
periodstring否5m5m, 15m, 30m, 1h, 2h, 4h, 6h, 12h, 1d 之一。
limitinteger否10Binance 最大 500。

响应 — 200 OK​

数组(Binance 结构):

[
{
"symbol": "BTCUSDT",
"sumOpenInterest": "12345.678",
"sumOpenInterestValue": "827654321.00",
"timestamp": 1745920800000
}
]

错误​

HTTP触发原因
422缺少 symbol。
502上游 Binance 请求失败。

示例​

curl -s "https://api-dev.pipai.org/openInterestHist?symbol=BTCUSDT&period=1h&limit=24"