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

ParamDescription
mintBase-58 token mint address.

Query parameters

ParamTypeDefaultAllowed / range
intervalenum1m1m · 5m · 15m · 30m · 1h · 4h · 1d · 1w
limitint5001–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,
    "openSol": 0.0000000298, "highSol": 0.0000000298,
    "lowSol": 0.0000000298, "closeSol": 0.0000000298,
    "volumeUsd": 101.65, "volumeToken": 41152213.7, "volumeSol": 1.2253, "trades": 1 },
  … ] }
Newest candle first — reverse the array for an ascending chart. time is unix-ms (bucket start). Candles are computed on-read from dex_trades (the deduped source of truth — the old ohlcv_* materialized views are retired), deterministically: legs are deduped by (signature, event_index, pool_address), same-timestamp ties are broken by a fixed total order (so results never flip between identical requests), and gross-mispricing outliers are fenced once at a fixed 1-hour-UTC granularity — so accepted legs, and therefore OHLC, roll up consistently across every interval. open/high/low/close are USD; openSol/highSol/lowSol/closeSol and volumeSol are the same bars priced in SOL.

Try it

Run GET /v1/tokens/{mint}/candleslive · GET

Your key is stored only in this browser (localStorage).