Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.solanatracker.io/llms.txt

Use this file to discover all available pages before exploring further.

The Data API provides several ways to get token prices: a single live price, historical chart candles, and bulk multi-token lookups.

Live Price

The price endpoint returns the current price for any token.
curl "https://data.solanatracker.io/price?token=So11111111111111111111111111111111111111112" \
  -H "x-api-key: YOUR_API_KEY"

Multiple Token Prices

Need prices for a batch of tokens? Use the multi-price endpoint to fetch them all at once instead of making individual requests.
curl "https://data.solanatracker.io/price/multi?tokens=So111...112,38Pgz...pump" \
  -H "x-api-key: YOUR_API_KEY"

OHLCV Chart Data

The OHLCV endpoint returns candlestick data for charting. OHLCV means open, high, low, close, and volume. Example Solana token chart with price candles, volume bars, and holder data
curl "https://data.solanatracker.io/chart/{token}?type=1h&time_from=1710000000&time_to=1710086400" \
  -H "x-api-key: YOUR_API_KEY"

Candle Intervals

type valueInterval
1s1 second
5s5 seconds
15s15 seconds
1m1 minute
3m3 minutes
5m5 minutes
15m15 minutes
30m30 minutes
1h1 hour
2h2 hours
4h4 hours
6h6 hours
8h8 hours
12h12 hours
1d1 day
3d3 days
1w1 week
1mn1 month

Pool-Specific Charts

For tokens with multiple pools, use the pool-specific OHLCV endpoint to get candles from a specific pool:
curl "https://data.solanatracker.io/chart/{token}/{pool}?type=1h" \
  -H "x-api-key: YOUR_API_KEY"

Historical Prices

Price at a Specific Time

The timestamp price endpoint returns what a token was worth at an exact point in time.
curl "https://data.solanatracker.io/price/history/timestamp?token={token}&timestamp=1710000000" \
  -H "x-api-key: YOUR_API_KEY"

Price History (Time Series)

The price history endpoint returns historical price data points.
curl "https://data.solanatracker.io/price/history?token={token}" \
  -H "x-api-key: YOUR_API_KEY"

Price Range (High/Low)

The price range endpoint returns the minimum and maximum price within a time window.
curl "https://data.solanatracker.io/price/history/range?token={token}&time_from=1710000000&time_to=1710086400" \
  -H "x-api-key: YOUR_API_KEY"

Example: Build a Price Dashboard

const token = "38PgzpJYu2HkiYvV8qePFakB8tuobPdGm2FFEn7Dpump";
const headers = { "x-api-key": "YOUR_API_KEY" };

// Current price
const { price } = await fetch(
  `https://data.solanatracker.io/price?token=${token}`, { headers }
).then(r => r.json());

// Last 24h candles (1 hour intervals)
const now = Math.floor(Date.now() / 1000);
const candles = await fetch(
  `https://data.solanatracker.io/chart/${token}?type=1h&time_from=${now - 86400}&time_to=${now}`, { headers }
).then(r => r.json());

// ATH
const ath = await fetch(
  `https://data.solanatracker.io/tokens/${token}/ath`, { headers }
).then(r => r.json());

console.log(`Current: $${price}`);
console.log(`24h candles: ${candles.length}`);
console.log(`ATH: $${ath.highest}`);

Open-Source Chart Examples

Liveline Chart

Minimal real-time line chart using the Datastream WebSocket.

TradingView Advanced Chart

Full TradingView integration with real-time candle updates.

Live Prices (WebSocket)

Stream real-time prices and build live updating charts.

Token Research

Full token lookup: stats, holders, trades, and events.