Subscriptions (WebSockets) require a Growth or Enterprise plan. Learn more.
The sortKey for the bar (
blockNumber#transactionIndex#logIndex, zero padded). For example, 0000000016414564#00000224#00000413.UnconfirmedResolutionBarData!
required
Price data broken down by resolution.
The quote token within the pair.
Example Response
Usage Guidelines
- Subscribe using
pairId(formatpairAddress:networkId) andquoteToken(token0ortoken1) - Solana only — this subscription streams bar data from unconfirmed (pending) transactions for the lowest possible latency
- Bar data is simplified OHLCV (
o,h,l,c,v) without theusd/tokensplit or trade metrics available inonBarsUpdated - Supports sub-second resolutions (
r1S,r5S,r15S) in addition to standard resolutions (r1throughr1D) - Use this for latency-sensitive applications where seeing unconfirmed price movement is more important than finality
Troubleshooting Tips
When should I use this vs onBarsUpdated?
When should I use this vs onBarsUpdated?
Use
onUnconfirmedBarsUpdated when you need the fastest possible price updates on Solana and can tolerate the data being unconfirmed. Use onBarsUpdated for confirmed, finalized bar data with richer trade metrics (buyers, sellers, buy/sell volume, liquidity). Most charting applications should use onBarsUpdated.Can unconfirmed bars change after they're received?
Can unconfirmed bars change after they're received?
Yes. Since the data is from unconfirmed transactions, the final confirmed values may differ. Transactions can fail, be reordered, or be dropped. Treat unconfirmed bars as provisional.
Why are the bar fields simpler than onBarsUpdated?
Why are the bar fields simpler than onBarsUpdated?
Unconfirmed bars only provide OHLCV data (
o, h, l, c, v) directly on each resolution — there’s no usd/token split and no trade breakdown metrics like buyers, sellers, or buyVolume. This is because full trade analysis requires confirmed transaction data.Is this available on chains other than Solana?
Is this available on chains other than Solana?
No. Unconfirmed bar data is currently only available on Solana (networkId: 1399811149).