GET /candles/{chainId}/{address}
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/pumpfun/candles/{chainId}/{address}Cache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeOHLCV candlestick bars for a coin, oldest first.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
chainId | path | str | required | CAIP-2 chain ID (solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp). default: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpexample: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
address | path | str | required | Token mint address. example: 9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump |
res | query | str | required | Candle resolution: 1m, 5m, 15m, 1h, 4h, 1d, 1w, 1M. default: 5mexample: 5m |
measure | query | str | optional | Price measure: price_usd, price_quote, price_native, market_cap_usd. default: price_usdexample: price_usd |
count | query | int | optional | Number of bars to return. default: 60example: 10 |
to | query | int | optional | Optional upper bound Unix timestamp in seconds. |
Response
type: object
data key: candles
pagination: none
sample: {
"candles": "array[10]",
"hasOlder": "bool",
"source": "str",
"served": "object",
"supplyUsed": "str"
}
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/pumpfun/candles/solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump?res=5m&measure=price_usd&count=10"