GET /fapi/api/futures/ocPcCompare

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/coinglass/fapi/api/futures/ocPcCompareCache cached 1s, never served stale past that windowCost per_row · weight 2 · heavy rate classSource billing free

Open interest change vs price change divergence across futures coins

Parameters

nameintypedescription
symbolquerystringoptionalOptional coin ticker symbol filter
default: BTC
example: BTC
timeTypequeryintegeroptionalTimeframe code
default: 2
example: 2

Response

type: array
pagination: none
sample: [
  {
    "logo": "https://cdn.coinglasscdn.com/static/img/coins/bitcoin-cash-B",
    "oiChangePercent12h": 1.65,
    "oiChangePercent24h": 2.05,
    "oiChangePercent48h": 3.03,
    "oiChangePercent4h": 1.3,
    "oiChangePercent72h": 2.4
  }
]

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/coinglass/fapi/api/futures/ocPcCompare?symbol=BTC&timeType=2"