URL:
Available on Premium, Business, and Enterprise plans.
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 toprice-by-token:{tokenAddress} for the primary pool’s price. The primary pool is usually the one with the most liquidity.
Aggregated price
Subscribe toprice:aggregated:{tokenAddress} for a cross-pool price summary. The payload includes median, average, minimum, maximum, and pool count.
Price by pool
Subscribe toprice:{poolId} for price updates from one specific pool. Use this when you care about a particular DEX or liquidity source.
All pool prices
Subscribe toprice:{tokenAddress} (without aggregated) to receive individual price updates from every pool a token trades on.
Token changes (full updates)
Subscribe totoken:{tokenAddress} when you need pool state beyond price, including liquidity, market cap, supply, and security fields.
Live transactions
Subscribe totransaction:{tokenAddress} to see every swap as it happens.
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 tovolume:token:{tokenAddress} for aggregated volume updates:
Token statistics
Subscribe tostats:token:{tokenAddress} for multi-timeframe stats (1m, 5m, 1h, 6h, 24h buy/sell counts, volume, unique traders):
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.