GET /candles/{chainId}/{address}/line
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/pumpfun/candles/{chainId}/{address}/lineCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeDownsampled close-price line chart points for a coin.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
chainId | path | str | required | CAIP-2 chain ID. default: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpexample: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
address | path | str | required | Token mint address. example: 9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump |
res | query | str | required | Base resolution: 1m, 5m, 15m, 1h, 4h, 1d. default: 5mexample: 5m |
measure | query | str | optional | Price measure (price_usd, market_cap_usd). default: price_usdexample: price_usd |
count | query | int | optional | Source candle count. default: 60example: 30 |
maxPoints | query | int | optional | Maximum LTTB-downsampled points (2..2000). default: 200example: 20 |
Response
type: object
data key: points
pagination: none
sample: {
"points": "array[20]",
"served": "object",
"source": "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/line?res=5m&measure=price_usd&count=30&maxPoints=20"