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

Exchange History Chart(Plan1)

GET
/api/openInterest/v2/chart
This API retrieves historical open interest data for a cryptocurrency from exchanges

Request

Query Params
baseCoin
string 
required
Example:
BTC
exchange
string 
optional
Binance,OKX,Bybit,Gate,Huobi,Bitget,Bitmex,dYdX,Bitfinex,CME,Kraken,Deribit
interval
string 
required
Example:
1h
size
string 
optional
default 100 max 500
Example:
10
type
string 
optional
USD OR COIN name eg:BTC
Example:
USD
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/v2/chart?baseCoin=BTC&exchange=&interval=1h&size=10&type=USD' \
--header 'apikey;'

Responses

🟢200OK
application/json
Body
success
boolean 
required
code
string 
required
data
object 
required
tss
array[integer]
required
time array
prices
array [oneOf] 
required
price array
dataValues
object 
required
array
Example
{
  "success": true,
  "code": "1",
  "data": {
    "tss": [
      1725983155339,
      1725980400000,
      1725976800000,
      1725973200000,
      1725969600000,
      1725966000000,
      1725962400000,
      1725958800000,
      1725955200000,
      1725951600000,
      1725948000000
    ],
    "prices": [
      56912.9,
      56706,
      57169.1,
      57190.1,
      57140,
      57054.9,
      57024.5,
      57183.2,
      56797.5,
      56910.8
    ],
    "dataValues": {
      "Binance": [
        120064.604,
        119987.073,
        120637.148,
        119831.719,
        119756.309,
        119966.931,
        120298.03,
        120208.275,
        119984.354,
        119790.445,
        119769.907
      ],
      "Bitfinex": [
        6553.24445106,
        6563.50838433,
        6564.30373245,
        6565.44079997,
        6564.57050874,
        6564.78958296,
        6563.30326223,
        6564.35177527,
        6562.49401847,
        6563.60862149,
        6563.62747918
      ],
      "Bitget": [
        91176.017,
        91156.989,
        91694.265,
        91001.263,
        90716.941,
        90761.874,
        90114.833,
        90169.876,
        90580.466,
        90875.465,
        90786.742
      ],
      "Bitmex": [
        5862.262528,
        5892.339614,
        5903.806408,
        5831.606786,
        5853.634247,
        5869.66811,
        5906.56616,
        5911.467407,
        5905.314446,
        5913.112091,
        5901.991381
      ],
      "Bybit": [
        75497.183,
        75654.84,
        75663.685,
        75607.541,
        75791.95,
        75548.608,
        75462.941,
        75313.028,
        74976.065,
        74649.104,
        74391.153
      ],
      "CME": [
        142718.6,
        142718.6,
        142308.5,
        142308.5,
        142308.5,
        142308.5,
        142308.5,
        142308.5,
        142308.5,
        142308.5,
        142308.5
      ],
      "Deribit": [
        25497.8641,
        25517.147315,
        25625.450156,
        25406.305523,
        25370.527753,
        25355.198763,
        25387.177116,
        25422.254835,
        25336.893361,
        25368.869826,
        25339.073729
      ],
      "Gate": [
        25963.9028,
        26036.881695,
        26267.314378,
        26586.410453,
        26484.299734,
        26507.897198,
        26418.056439,
        26438.646628,
        26280.266389,
        25812.400218,
        25842.611021
      ],
      "Huobi": [
        23205.545781461908,
        23191.24589118508,
        23193.854247420237,
        23181.89791320997,
        23168.84454164386,
        23169.81517330811,
        23172.436555349595,
        23173.02820572803,
        23169.529430016366,
        23174.27700444777,
        23163.94807383126
      ],
      "Kraken": [
        2479.6463,
        2463.674159,
        2474.417779,
        2471.998527,
        2460.555688,
        2469.771801,
        2482.111262,
        2509.844415,
        2523.95659,
        2479.971858,
        2479.019931
      ],
      "Okex": [
        41228.85016306558,
        41385.870247391074,
        41833.44733247992,
        41795.05436075757,
        41769.52299043537,
        41815.73358259631,
        41828.35042357681,
        41739.85350282579,
        41925.69886276071,
        41930.22776238521,
        41917.09707298473
      ],
      "dYdX": [
        829.4755,
        832.3095,
        843.9636,
        862.0358,
        866.5939,
        866.7901,
        868.0943,
        870.2486,
        870.866,
        877.1698,
        881.3488
      ]
    }
  }
}
Modified at 2025-03-05 06:22:03
Previous
Exchange List(Plan1)
Next
Trading Pair Open Interest(Plan1)
Built with