curl --request GET \
--url https://public-api.birdeye.so/defi/ohlcv \
--header 'X-API-KEY: <api-key>'import requests
url = "https://public-api.birdeye.so/defi/ohlcv"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://public-api.birdeye.so/defi/ohlcv', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));OHLCV
Retrieve candlestick data in OHLCV format of a specified token. Maximum 1000 records.
curl --request GET \
--url https://public-api.birdeye.so/defi/ohlcv \
--header 'X-API-KEY: <api-key>'import requests
url = "https://public-api.birdeye.so/defi/ohlcv"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://public-api.birdeye.so/defi/ohlcv', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));- Usage Note
- Accessibility
- Chain Supported
Legacy token OHLCV candles.
- Request one token address plus
time_from,time_to, and candletype. - This endpoint returns open, high, low, close, and volume buckets for charting and historical analysis.
- Use the legacy OHLCV endpoint when the standard interval set is enough and you do not need V3-only options like second-level intervals or count mode.
- Prefer V3 OHLCV when you need
1s,15s,30s,count_limit,padding,outlier, orinversion.
- Standard
- Lite
- Starter
- Premium
- Business
- Enterprise
All chains ⛓️ ✨
Compute Unit ⚙️
Compute Unit ⚙️
- This endpoint consumes
35 CUper request.
Use Cases 💡
Use Cases 💡
- Render classic candlestick charts for token detail pages and trading dashboards.
- Backtest price action with volume-aware buckets over fixed historical windows.
- Compare regime shifts before and after launches, liquidity adds, or large wallet activity.
- Feed technical-analysis indicators that rely on candle structure rather than spot price alone.
How to Use 🛠️
How to Use 🛠️
- Set
x-chainfor the target network. - Pass the token address in
address. - Define the candle window with
time_fromandtime_to. - Choose
typefrom the supported legacy intervals such as1m,5m,1H,1D,1W, or1M.
Best Practices ✅
Best Practices ✅
- Pick the coarsest interval that still answers the question to keep charts lighter and easier to scan.
- Keep chart timezone and bucket labels consistent with your other historical endpoints.
- Move to
OHLCV V3when you need finer launch-time analysis or more control over returned buckets.
Authorizations
API key for authentication
Headers
A chain name listed in supported networks.
solana, ethereum, bsc, base, robinhood, sui, mantle, hyperevm, arbitrum, avalanche, optimism, polygon, zksync, monad, aptos, fogo, megaeth Query Parameters
The address of the token contract.
OHLCV time frame.
1m, 3m, 5m, 15m, 30m, 1H, 2H, 4H, 6H, 8H, 12H, 1D, 3D, 1W, 1M Currency in which OHLCV data is presented. Choose between usd or native token.
usd, native Display OHLC as token price or market cap. mcap mode only applies to token OHLCV on Solana and falls back to price if supply is unavailable. Default: price
price, mcap Specify the start time using unix timestamps in seconds
0 <= x <= 10000000000Specify the end time using unix timestamps in seconds
0 <= x <= 10000000000Indicate whether to use the scaled amount for scaled ui amount tokens. Only support solana
raw, scaled, both Was this page helpful?

