Get Token Price History and OHLCV Data
Get historical crypto price data (OHLCV) for any token across 20+ blockchains. Perfect for building charts, backtesting strategies, and price analysis.
Having trouble with the API? We’re here to help - drop us a line and we’ll get you sorted.
Why You Need Historical Price Data
Building a crypto app? You’ll likely need price charts, volatility analysis, or backtesting data. That’s where OHLCV (Open, High, Low, Close, Volume) data comes in - it’s the backbone of any serious crypto application.
Common use cases:
- Price charts in trading apps
- Backtesting trading strategies
- Volatility analysis for risk management
- Historical performance dashboards
- Market research and analytics
Quick Start: If you know your token already, jump to Step 2 to grab the data immediately.
Step 1: Find Your Token’s Trading Pool
Here’s the thing - historical data comes from actual trading pools, not tokens directly. This makes sense because prices happen where people trade.
Quick Search (Recommended)
The fastest way to find what you need using the Search API:
Pro tip: Search returns tokens, pools, and exchanges. Look for pools with high volume - they’ll have the most reliable price data.
If You Have the Token Address
Skip the search and go straight to pools using the Token Pools API:
Always pick pools with decent volume (>$10k daily). Low-volume pools can have weird price spikes that don’t reflect real market conditions.
Step 2: Get Price History Data
Now for the good stuff. Here’s how to pull historical OHLCV data using the Pool OHLCV API:
(Using USDC/ETH pool on Ethereum as example in this tutorial)
What These Parameters Do:
Parameter | What It Does | Example |
---|---|---|
start | When to start collecting data | 2025-01-01 or Unix timestamp |
limit | How many data points (max 366) | 30 for 30 days |
interval | Time between each point | 24h , 1h , 5m , etc. |
end | When to stop (optional) | 2025-01-31 |
inversed | Flip the price ratio | true for ETH/USDC → USDC/ETH |
What You Get Back:
Each data point gives you everything you need for candlestick charts or analysis.
Time Intervals That Actually Matter
Choose based on what you’re building:
For Trading Apps:
1m
,5m
- Real-time trading1h
,4h
- Swing trading24h
- Position trading
For Analytics Dashboards:
24h
- Daily summaries- Use daily data and aggregate for weekly/monthly views
For Research:
24h
with longer date ranges (up to 1 year)
Production Tips That’ll Save You Time
Cache Aggressively
Historical data doesn’t change - cache it locally:
Handle Data Gaps
Some pools have quiet periods. Here’s how to deal with gaps:
Multi-Pool Strategy
For major tokens, cross-reference data from multiple pools:
Rate Limiting
Don’t hammer the API. We suggest you to batch your requests and cache results:
Troubleshooting Common Issues
”Empty Response”
Pool might not have data for your date range:
“Weird Price Spikes”
You hit a low-liquidity period. Switch to shorter intervals or higher-volume pools:
“Upside-Down Prices”
You need the inverted ratio:
What’s Next?
Pool Details API
Get liquidity, fees, and other pool metrics.
Real-time Price Feeds
Combine historical data with live prices.