Skip to main content
The Datastream WebSocket gives you real-time price feeds for any Solana token. Connect once and receive price updates as they happen — no polling required.
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.

Price by Token

Subscribe to price-by-token:{tokenAddress} to get price updates from the primary pool. The primary pool is usually the pool with the most liquidity, meaning the most funds available for trading.
Payload:

Aggregated Price

Subscribe to price:aggregated:{tokenAddress} for one price made from many pools. The message includes median, average, min, max, and pool count. Use this for high-liquidity tokens that trade across multiple pools.
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} for comprehensive pool updates — price, liquidity, market cap, supply, and security data all in one message.
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

Combine the price stream with the OHLCV REST endpoint to build a real-time chart. OHLCV means open, high, low, close, and volume. Use REST for historical candles, then update the latest candle with WebSocket ticks.

Open-Source Chart Examples

We have two open-source chart implementations you can use as a starting point:

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

Price & Charts (REST)

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

Token Discovery Streams

Stream new tokens, graduating tokens, and market events.