Skip to main content
Choose a price room by scope: the primary pool, a specific pool, every pool, or an aggregate across pools. For charts, combine these ticks with historical candles from the Data API.
URL: wss://datastream.solanatracker.io/{apiKey}
Available on Premium, Business, and Enterprise plans.

Connect

All Datastream channels use the same WebSocket connection. Send JSON messages to join and leave rooms. See the Datastream protocol for heartbeat (ping/pong), auth failures, and leave semantics.

Price by token

Subscribe to price-by-token:{tokenAddress} for the primary pool’s price. The primary pool is usually the one with the most liquidity.
Payload:

Aggregated price

Subscribe to price:aggregated:{tokenAddress} for a cross-pool price summary. The payload includes median, average, minimum, maximum, and pool count.
Payload:

Price by pool

Subscribe to price:{poolId} for price updates from one specific pool. Use this when you care about a particular DEX or liquidity source.

All pool prices

Subscribe to price:{tokenAddress} (without aggregated) to receive individual price updates from every pool a token trades on.

Token changes (full updates)

Subscribe to token:{tokenAddress} when you need pool state beyond price, including liquidity, market cap, supply, and security fields.
For primary pool only (less noise on multi-pool tokens):

Live transactions

Subscribe to transaction:{tokenAddress} to see every swap as it happens.
Filter by pool:

Build a live chart

Load historical candles from the OHLCV endpoint, then use price ticks to update the current candle’s open, high, low, and close. Price ticks alone do not provide traded volume.

Open-source chart examples

These example repositories show how to connect the history and live feeds:

Liveline Chart

Minimal real-time line chart using the Datastream WebSocket. Good starting point for custom UIs.

TradingView Advanced Chart

Full TradingView Advanced Charts integration with real-time candle updates from the Datastream.

Volume & statistics

Token volume

Subscribe to volume:token:{tokenAddress} for aggregated volume updates:

Token statistics

Subscribe to stats:token:{tokenAddress} for multi-timeframe stats (1m, 5m, 1h, 6h, 24h buy/sell counts, volume, unique traders):
For a single total snapshot:

Room reference

Prices and charts

REST endpoints for historical OHLCV, price snapshots, and ATH data.

Token launches

Stream new tokens, graduating tokens, and market events.