GET /tokens/{chain}/{address}/candles
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/socket/tokens/{chain}/{address}/candlesCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeCandles for a spot-terminal token.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
chain | path | str | required | Chain slug. example: solana |
address | path | str | required | Token address. example: 3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh |
interval | query | str | optional | Candle interval. example: 1h |
limit | query | int | optional | Number of candles. example: 50 |
Response
type: object
data key: items
pagination: none
sample: {
"items": "array"
}
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/socket/tokens/solana/3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh/candles?interval=1h&limit=50"