WebSocket Streams
Realtime Exchange provides two WebSocket services for real-time market data streaming:- Main WebSocket - Real-time trading data for pairs, tokens, and pools
- Aggregated WebSocket - Aggregated token data with price and volume alerts
Main WebSocket
Connection
Available Channels
| Channel | Description |
|---|---|
subscribe:pairs | Subscribe to pair price and candle updates |
subscribe:tokens | Subscribe to token candle updates |
subscribe:datafeed | TradingView-compatible OHLCV datafeed |
subscribe:token-datafeed | Token-specific candlestick datafeed |
subscribe:trades | Real-time trade updates for a pair |
subscribe:pool-markets | Pool market data (price, liquidity, volume) |
subscribe:pool | Unified pool stream (trades + candles) |
Supported Intervals
Pair Subscriptions
Subscribe to real-time price and candle updates for trading pairs.Subscribe
Events Received
Subscription Confirmed:Unsubscribe
Token Subscriptions
Subscribe to candle updates for specific tokens across all pools.Subscribe
Events Received
Subscription Confirmed:Datafeed (TradingView Compatible)
Subscribe to OHLCV data for TradingView charting integration.Subscribe
| Period (minutes) | Interval |
|---|---|
| 1 | 1m |
| 5 | 5m |
| 15 | 15m |
| 60 | 1h |
| 240 | 4h |
| 1440 | 1d |
| 10080 | 1w |
Events Received
Subscription Confirmed:Token Datafeed
Subscribe to candlestick data for individual tokens.Subscribe
Events Received
Subscription Confirmed:Trades Stream
Subscribe to real-time trade executions for a specific pair.Subscribe
Events Received
Subscription Confirmed:| Field | Type | Description |
|---|---|---|
taker | string | Taker wallet address |
type | string | Trade type: "buy" or "sell" |
price | string | Execution price |
size | string | Trade size in token units |
timestamp | number | Unix timestamp |
transactionHash | string | On-chain transaction hash |