This endpoint requires a Growth or Enterprise plan. Learn more.
Returns
Arguments
ChartInput!
required
Input required to fetch a pair chart.
Usage Guidelines
- Provide
pairAddressandnetworkIdto generate a chart URL for a specific trading pair resolutionsets the candlestick timeframe — valid values include"1S","5S","15S","30S","1","5","15","30","60","240","720","1D","7D"quoteTokendetermines which token is the quote currency — usetoken0ortoken1themecan beLIGHTorDARKto match your application’s design- Use
fromandto(Unix timestamps) to specify a custom time range for the chart imageOptionslets you customize dimensions (width,height) and URL lifetime (expirationSeconds)- The returned URL is a pre-signed URL that expires after the specified duration (default varies by plan)
Troubleshooting Tips
What resolution values are supported?
What resolution values are supported?
Resolution values include seconds (
"1S", "5S", "15S", "30S"), minutes ("1", "5", "15", "30", "60"), hours ("240", "720"), and days ("1D", "7D"). For example, "60" gives hourly candles, "240" gives 4-hour candles.How long is the chart URL valid?
How long is the chart URL valid?
The URL expiration depends on
expirationSeconds in imageOptions. If not specified, the default expiration is set by your plan tier. URLs are pre-signed and will return an error after expiration — generate a new URL when needed.How do I choose between token0 and token1 for quoteToken?
How do I choose between token0 and token1 for quoteToken?
quoteToken determines which token’s price is shown. If you want the chart to show “Token A in terms of Token B”, set quoteToken to the token B position. Check pairMetadata to see which token is token0 vs token1 if you’re unsure.Why am I getting an authorization error?
Why am I getting an authorization error?