Skip to main content
按范围选择价格房间:主池、指定池、全部池或跨池聚合。图表历史来自 Data API,实时价格用于更新当前 K 线。
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

价格与图表

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

代币发行

Stream new tokens, graduating tokens, and market events.