CoinAnk-api
  1. Open Interest
CoinAnk-api
  • Error Code
    • errcode
      GET
  • WebHook
    • WebHook APP PUSH(Plan1)
      POST
  • Coin & Symbol
    • Supported Coins(Plan1)
      GET
    • Supported Trading Pairs(Plan1)
      GET
    • Last Price(Plan1)
      GET
    • Coin MarketCap(Plan1)
      GET
  • Open Interest
    • Exchange List(Plan1)
      GET
    • Exchange History Chart(Plan1)
      GET
    • Trading Pair Open Interest(Plan1)
      GET
    • Trading Pair Open Interest K Line(Plan1)
      GET
    • Aggregation Open Interest K Line(Plan1)
      GET
    • Real-Time Open Interest(Plan1)
      GET
  • Liquidation
    • Exchange Liquidation Statistics(Plan1)
      GET
    • Aggregation Liquidation Statistics(Plan1)
      GET
    • Trading Pair Liquidation Statistics(Plan1)
      GET
    • Liquidation order(Plan3)
      GET
    • Liquidation Map (Plan4)
      GET
    • Aggregation Liquidation Map (Plan4)
      GET
    • Liquidation Heatmap (Plan4)
      GET
    • Liquidation Heatmap Symbol (Plan1)
      GET
  • Market Order Statistics
    • Market Order Statistical Indicators (Plan3)
      GET
    • Aggregate Market Order Statistical Indicators (Plan3)
      GET
    • CVD Data (Plan3)
      GET
    • Taker Buy/Sell Count (Plan3)
      GET
    • Taker Buy/Sell Value (Plan3)
      GET
    • Taker Buy/Sell Volume (Plan3)
      GET
    • Aggregate CVD Data (Plan3)
      GET
    • Aggregate Taker Buy/Sell Count (Plan3)
      GET
    • Aggregate Taker Buy/Sell Value (Plan3)
      GET
    • Aggregate Taker Buy/Sell Volume (Plan3)
      GET
  • Fundflow
    • Real-time Funds Flow (Plan3)
    • Fund flow historical data (Plan3)
  • FundingRate
    • Historical Settlement Funding Rate (Plan1)
    • Real-time FundingRate (Plan1)
    • Accumulated FundingRate (Plan1)
    • Trading Pair Funding Rate History (Plan1)
    • Trading Pair Funding Rate Kline (Plan1)
    • Weighted FundingRate (Plan1)
    • FundingRate Heatmap (Plan3)
  • Longshort
    • Coin bue/sell (Plan1)
    • Exchange Real-time long-short ratio (Plan1)
    • Global Account Ratio(Plan1)
    • Top Trader Long/Short Ratio(Position) (Plan1)
    • Top Trader Long/Short Ratio (Accounts) (Plan1)
    • Long short ratio k line (Plan1)
  • Net Long & Net Short
    • Net long & Net short (Plan1)
  • OrderBook
    • Trading Pair Order Book Difference (Plan3)
    • Exchange Order Book Difference (Plan3)
    • OrderBook Heatmap (Plan4)
  • OrderFlow
    • OrderFlow List (Plan3)
  • RsiMap
    • RsiMap (Plan2)
  • BigOrder
    • Large Limit Order (Plan3)
    • Large Maker Order (Plan3)
  • Popular Ranking
    • Open Interest Ranking (Plan2)
    • Transactions Ranking (Plan2)
    • Liquidation Ranking(Plan2)
    • PriceChg Ranking(Plan2)
    • VolumeChg Ranking (Plan2)
    • Visual Screener(Plan 2)
  • KLine
    • Kline (Plan1)
  • Indicator Data
    • 2-Year MA Multiplier(Plan1)
    • Pi Cycle Top Indicator(Plan1)
    • Fear & Greed (Plan1)
    • BTC Ahr999 Index(Plan1)
    • BTC Market Cap(Plan1)
    • The Puell Multiple(Plan1)
    • 200 Week Moving Average Heatmap(Plan1)
    • Grayscale BTC Holdings(Plan1)
    • AltCoinSeation(Plan1)
    • Special Indicator Data(Plan1)
  • hyperLiquid Whale
    • Hyperliquid Whale Position(plan2)
    • Hyperliquid Whale Action(plan2)
  1. Open Interest

Aggregation Open Interest K Line(Plan1)

GET
https://open-api.coinank.com/api/openInterest/aggKline
Aggregation Open Interest K Line

Request

Query Params
baseCoin
string 
required
Example:
BTC
interval
string 
required
1m 3m 5m 15m 30m 1h 2h 4h 6h 8h 12h 1d
Example:
1m
endTime
number 
required
Returns data before this timestamp
Example:
1726158495618
size
integer 
optional
Max : 500
Example:
500
Header Params
apikey
string 
required
Register and activate to obtain apikey

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://open-api.coinank.com/api/openInterest/aggKline?baseCoin=BTC&interval=1m&endTime=1726158495618&size=500' \
--header 'apikey;'

Responses

🟢200OK
application/json
Body
success
boolean 
required
code
string 
required
data
array [object {5}] 
required
begin
integer 
required
open
integer 
required
close
integer 
required
low
integer 
required
high
integer 
required
Example
{
    "success": true,
    "code": "1",
    "data": [
        {
            
            "begin": 1725948000000,
            "open": 31838378474,
            "close": 31813083312,
            "low": 31761680092,
            "high": 31846846111
        },
        {
            
            "begin": 1725951600000,
            "open": 31813083312,
            "close": 32054974251,
            "low": 31794605163,
            "high": 32091157332
        },
        {
           
            "begin": 1725955200000,
            "open": 32054974251,
            "close": 31980029319,
            "low": 31980029319,
            "high": 32156023059
        },
        {
            
            "begin": 1725958800000,
            "open": 31980029319,
            "close": 32021363049,
            "low": 31944239965,
            "high": 32177569207
        },
        {
         
            "begin": 1725962400000,
            "open": 32021363049,
            "close": 32081355478,
            "low": 31961788585,
            "high": 32081355478
        },
        {
           
            "begin": 1725966000000,
            "open": 32081355478,
            "close": 32107608699,
            "low": 32012682588,
            "high": 32126711676
        },
        {
           
            "begin": 1725969600000,
            "open": 32107608699,
            "close": 32108441040,
            "low": 32040341091,
            "high": 32191753369
        },
        {
          
            "begin": 1725973200000,
            "open": 32108441040,
            "close": 31948012539,
            "low": 31838828682,
            "high": 32118418182
        },
        {
           
            "begin": 1725976800000,
            "open": 31948012539,
            "close": 31957877431,
            "low": 31860497121,
            "high": 32112077357
        },
        {
          
            "begin": 1725980400000,
            "open": 31957877431,
            "close": 31875905253,
            "low": 31780246373,
            "high": 32063729090
        }
    ]
}
Previous
Trading Pair Open Interest K Line(Plan1)
Next
Real-Time Open Interest(Plan1)
Built with