Skip to main content
This is the live-streamed subscription version of our getTokenBars aggregated chart data endpoint.
Pricing for aggregate charts will no longer only use the top pair. Weighted average pricing will be used across a token’s top pairs, based on liquidity/recency, while filtering out lower quality pairs from contributing.
Returns: OnTokenBarsUpdatedResponse

Arguments

tokenId
String
The ID of the token (address:networkId). Required unless you are on an enterprise plan including BarFeed features.
networkId
Int
The networkId to use when getting all bars per network.

Schema

"""Live-streamed bar chart data to track price changes over time for a token."""
onTokenBarsUpdated(tokenId: String, networkId: Int): OnTokenBarsUpdatedResponse