GET /capi/api/priceAndIndicator
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/coinglass/capi/api/priceAndIndicatorCache cached 1s, never served stale past that windowCost per_row · weight 2 · heavy rate classSource billing freeCombined price and derivatives indicator time series
Parameters
| name | in | type | description | |
|---|---|---|---|---|
symbol | query | string | required | Base coin ticker symbol, e.g. BTC or ETH default: BTCexample: BTC |
interval | query | string | optional | Timeframe interval such as h1, h4, h8, h24 default: h8example: h8 |
index | query | string | optional | Indicator series key default: avg_fr_klineexample: avg_fr_kline |
limit | query | integer | optional | Maximum data points default: 100example: 100 |
Response
type: array
pagination: none
sample: [
{
"data": "list(5)",
"price": "list(2)"
}
]
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/priceAndIndicator?symbol=BTC&interval=h8&index=avg_fr_kline&limit=100"