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 freeOpen interest change vs price change divergence across futures coins
Parameters
| name | in | type | description | |
|---|---|---|---|---|
symbol | query | string | optional | Optional coin ticker symbol filter default: BTCexample: BTC |
timeType | query | integer | optional | Timeframe code default: 2example: 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"