- 错误码
- WebHook
- 币种和交易对
- 未平仓合约
- 爆仓数据
- 市价单统计指标
- 资金流
- 资金费率
- 多空比
- 净多头和净空头
- 订单本
- 订单流
- RSI选币器
- 大额订单
- 热门排行
- K线
- 指标数据
- ETF
- 新闻快讯
- hyperLiquid鲸鱼
- 自选
交易对持仓K线(Plan1)
GET
https://open-api.coinank.com/api/openInterest/kline
请求参数
Query 参数
exchange
string
必需
示例值:
Binance
symbol
string
必需
示例值:
BTCUSDT
interval
string
必需
示例 值:
1h
endTime
number
必需
示例值:
1725983462353
size
integer
可选
示例值:
10
Header 参数
apikey
string
必需
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://open-api.coinank.com/api/openInterest/kline?exchange=Binance&symbol=BTCUSDT&interval=1h&endTime=1725983462353&size=10' \
--header 'apikey;'
返回响应
🟢200OK
application/json
Body
success
boolean
必需
code
string
必需
data
array [object {5}]
必需
begin
integer
开始时间戳
open
integer
开
close
integer
高
low
integer
低
high
integer
收
示例
{"success":true,"code":"1","data":[{"id":"66dfe072b1dc79a6978962fe","begin":1725948000000,"open":86935,"close":86918,"low":86854,"high":86942},{"id":"66dfee81b1dc79a697dd3d06","begin":1725951600000,"open":86918,"close":87217,"low":86809,"high":87224},{"id":"66dffc93b1dc79a69731643b","begin":1725955200000,"open":87217,"close":87343,"low":87217,"high":87655},{"id":"66e00aa3b1dc79a697855e07","begin":1725958800000,"open":87343,"close":87452,"low":87133,"high":87452},{"id":"66e018b2b1dc79a697d97aa1","begin":1725962400000,"open":87452,"close":87157,"low":87139,"high":87485},{"id":"66e026c1b1dc79a6972d387d","begin":1725966000000,"open":87157,"close":86948,"low":86948,"high":87193},{"id":"66e034d5b1dc79a6977e8d3f","begin":1725969600000,"open":86948,"close":86945,"low":86790,"high":86972},{"id":"66e042e1b1dc79a697d14e93","begin":1725973200000,"open":86945,"close":87524,"low":86923,"high":87809},{"id":"66e050f9b1dc79a6972247b8","begin":1725976800000,"open":87524,"close":86977,"low":86977,"high":87597},{"id":"66e05f02b1dc79a69776cd21","begin":1725980400000,"open":86977,"close":87165,"low":86832,"high":87185}]}