GET /capi/api/openInterest/v3/ETH-BTC/chart
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/coinglass/capi/api/openInterest/v3/ETH-BTC/chartCache cached 1s, never served stale past that windowCost per_row · weight 2 · heavy rate classSource billing freeETH vs BTC open interest ratio historical chart
Parameters
| name | in | type | description | |
|---|---|---|---|---|
timeType | query | integer | optional | Timeframe code default: 0example: 0 |
Response
type: object
pagination: none
sample: {
"dateList": "list(2457)",
"firstPriceList": "list(2457)",
"openInterestRateList": "list(2457)",
"secondPriceList": "list(2457)"
}
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/capi/api/openInterest/v3/ETH-BTC/chart?timeType=0"