Overview
Get historical price data for any token with customizable time ranges and resolutions. Returns line or candlestick data perfect for building price charts, analyzing trends, and backtesting strategies.SDK Method
Parameters
string
required
Token contract address to get price history for
PriceFeedProps
required
Price feed configuration
string
Quote currency address (defaults to USD). Use ETH address for ETH-denominated prices.
AvnuOptions
Optional SDK configuration
Returns
ReturnsPromise<DataPoint[]> for LINE type or Promise<CandleDataPoint[]> for CANDLE type.
Examples
Resolution Guidelines
Recommended resolutions by time range:
Related
Get Market Data
Get current market data for all tokens
Get Token Data
Get detailed data for a specific token
API Reference
REST API price history endpoint
Markets Overview
Learn about Markets API