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 freeHistorical crypto options open interest and 24h volume by exchange
Parameters
| name | in | type | description | |
|---|---|---|---|---|
symbol | query | string | required | Base coin ticker symbol, e.g. BTC or ETH default: BTCexample: BTC |
timeType | query | integer | required | Timeframe code default: 0example: 0 |
currency | query | string | optional | Unit: USD or coin default: USDexample: 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¤cy=USD"