Subscriptions (WebSockets) require a Growth or Enterprise plan. Learn more.
Example Response
Usage Guidelines
- Subscribe using
pairIdin the formatpairAddress:networkId - Set
quoteTokentotoken0ortoken1to specify which token in the pair is being priced aggregatescontains OHLCV bar data across multiple resolutions simultaneously (e.g.,r1for 1-minute,r5for 5-minute,r60for 1-hour,r1Dfor 1-day)- Each resolution provides both
usd(USD-denominated) andtoken(native token-denominated) bars - Use
o,h,l,cfor open/high/low/close prices, andvfor volume - Granular trade metrics like
buyers,sellers,buyVolume, andsellVolumeare available per bar for trade flow analysis - Updates are streamed in real-time with every on-chain swap event
Troubleshooting Tips
What resolutions are available?
What resolutions are available?
Resolutions range from 1-second (
r1S) up to 1-week (r1W): r1S, r5S, r15S, r30S, r1 (1 min), r5, r15, r30, r60, r240 (4h), r720 (12h), r1D, r1W. You only need to request the resolutions you need in your query.What's the difference between usd and token bars?
What's the difference between usd and token bars?
usd bars are denominated in US dollars, while token bars are denominated in the paired token (e.g., USDC). Use usd for standard price charts and token for relative price analysis against the quote token.How do I choose the right quoteToken?
How do I choose the right quoteToken?
quoteToken selects which token in the pair is being priced. For example, in a SOL/USDC pair where SOL is token0, setting quoteToken: token0 returns the price of SOL in terms of USDC, while token1 returns the price of USDC in terms of SOL. Check the pair metadata to confirm which token is token0 vs token1.What does statsType: Filtered vs Unfiltered mean?
What does statsType: Filtered vs Unfiltered mean?
Filtered excludes suspected bot and sandwich attack transactions for cleaner price data. Unfiltered includes all transactions. Most charting use cases should use Filtered for more accurate price representation.How often are updates sent?
How often are updates sent?
Updates are sent in real-time with every swap event on the pair. High-volume pairs (e.g., SOL/USDC on Solana) may produce many updates per second, while low-volume pairs update less frequently.