GET /fapi/api/option/oi/history

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

Historical crypto options open interest and 24h volume by exchange

Parameters

nameintypedescription
symbolquerystringrequiredBase coin ticker symbol, e.g. BTC or ETH
default: BTC
example: BTC
timeTypequeryintegerrequiredTimeframe code
default: 0
example: 0
currencyquerystringoptionalUnit: USD or coin
default: USD
example: USD

Response

type: object
pagination: none
sample: {
  "dataMap": "object(5)",
  "dateList": "list(2330)",
  "priceList": "list(2330)",
  "vol24h": 0
}

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/option/oi/history?symbol=BTC&timeType=0&currency=USD"