Data API
GET /v1/tokens/{mint}/candles
OHLCV candles, ready for charting libraries.
Endpoint
GET https://solindex.infinityblocks.io/v1/tokens/{mint}/candles
Authentication
Send your key in the x-api-key header (or ?api-key=). See Authentication.
Path parameters
| Param | Description |
|---|---|
mint | Base-58 token mint address. |
Query parameters
| Param | Type | Default | Allowed / range |
|---|---|---|---|
interval | enum | 1m | 1m · 5m · 15m · 1h · 4h · 1d |
limit | int | 500 | 1–1000 |
Request
curl -s "https://solindex.infinityblocks.io/v1/tokens/<MINT>/candles?interval=1m&limit=500" \
-H "x-api-key: <API_KEY>"
const r = await fetch("https://solindex.infinityblocks.io/v1/tokens/<MINT>/candles?interval=1m&limit=500", {
headers: { "x-api-key": "<API_KEY>" },
});
const { data } = await r.json();
Response
{ "data": [
{ "time": 1780165200000, "open": 0.00000247, "high": 0.00000247,
"low": 0.00000247, "close": 0.00000247,
"volumeUsd": 101.65, "volumeToken": 41152213.7, "trades": 1 },
… ] }
Newest candle first — reverse the array for an ascending chart.
time is unix-ms (bucket start).Try it
Run GET /v1/tokens/{mint}/candleslive · GET
Your key is stored only in this browser (localStorage).
—