Returns bar chart data to track price changes over time.
countback: 1500
with from: 0
for maximum resultsremoveEmptyBars: true
to eliminate gaps in low-activity tokenscurrencyCode: "TOKEN"
for native token pricing instead of USDcirculatingSupply
from EnhancedToken
Wrong or inconsistent base token in pair (Token0 vs Token1)
quoteToken
parameter to auto-detect the correct base token of the pair automatically.Null or empty values returned
removeLeadingNullValues: true
Some BSC tokens return stale or incorrect data, such as '0' Volume
symbolType: Token
to your query. This is a common issue with four.meme tokens as their pair and token address is the same.Integrating data with TradingView
Updating charts in real-time
getBars
to do an initial fetch of bars and then subscribe to onBarsUpdated
to keep it updated in real-time. More info on creating real-time charts is available here.Incorrect values or errors returned with resolutions under 1m
1S, 5S, 15S, 30S
) only goes back 24 hours due to the volume of data required at those resolutions.pairAddress:networkId
or tokenAddress:networkId
). If a token contract address is provided, the token’s top pair is used. For example, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1
returns WETH’s top pair on Ethereum.1S
, 5S
, 15S
, 30S
, 1
, 5
, 15
, 30
, 60
, 240
, 720
, 1D
, 7D
. Resolutions lower than 1 minute are only updated for the last 24 hours due to the volume of data produced.USD
or TOKEN
. Default is USD
. Use currencyCode: TOKEN
for native token pricing.false
. To fetch a token’s entire history, set resolution to 1D
, from
value to 0
and removeLeadingNullValues
to true
.false
.token0
or token1
. If omitted, the base token is inferred automatically. You can invert the pair by quoting the other token.FILTERED
or UNFILTERED
.countback: 1500
with from: 0
for maximum results.TOKEN
or POOL
.