curl --request GET \
--url https://public-api.birdeye.so/defi/v3/ohlcv \
--header 'X-API-KEY: <api-key>'import requests
url = "https://public-api.birdeye.so/defi/v3/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/v3/ohlcv', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));OHLCV V3
Retrieve candlestick data in OHLCV format of a specified token. Maximum 5000 records. Compared to v1: Added 1s, 15s, and 30s intervals and no candle padding
curl --request GET \
--url https://public-api.birdeye.so/defi/v3/ohlcv \
--header 'X-API-KEY: <api-key>'import requests
url = "https://public-api.birdeye.so/defi/v3/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/v3/ohlcv', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));- Usage Note
- Accessibility
- Chain Supported
Extended OHLCV with finer intervals and count mode.
- V3 adds
1s,15s, and30sintervals, plusmode,count_limit,padding,outlier, andinversion. - Empty candles are not returned unless
padding=true. - When
mode=count, provide eithertime_fromortime_to, but not both;count_limitcan go up to5000. - Data retention for the newest intervals is shorter:
1sup to 2 weeks,15sand30sup to 3 months. - Use
outlier=falsewhen you want raw candles without Birdeye outlier filtering.
- Standard
- Lite
- Starter
- Premium
- Business
- Enterprise
All chains ⛓️ ✨
Compute Unit ⚙️
Compute Unit ⚙️
- CU is dynamic:
45 CUfor up to1000items,75 CUfor up to2000items, and100 CUfor up to5000items.
Use Cases 💡
Use Cases 💡
- Analyze launches, breakouts, and microstructure with second-level candles.
- Backfill large candle windows for research, charting, and signal generation.
- Build advanced chart tools that need control over padding, inversion, and outlier handling.
- Study price behavior around wallet activity, liquidity shocks, and execution events.
How to Use 🛠️
How to Use 🛠️
- Set
x-chainto one of the supported V3 networks. - Pass the token address plus
type. - Use
mode=rangewithtime_fromandtime_tofor normal chart windows. - Use
mode=countwith eithertime_fromortime_towhen you want the latest or previousNcandles.
Best Practices ✅
Best Practices ✅
- Start with broader intervals, then zoom into
1sor15sonly where the event warrants it. - Leave
padding=falsefor launch and sparse-trading tokens so empty buckets do not imply false activity. - Keep
count_limitas small as the use case allows to reduce payload size and CU.
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 V3 time frame.
1s, 15s, 30s, 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 Select either range (time range) or count (number of candles). If mode is count, time_from and time_to params must exist but not both. Default: range
range, count Specify the maximum candles returned. Only used with mode "count". Default: 5000
0 <= x <= 5000Indicate whether to use padding on empty candles. Default: false
true, false Indicate whether to allow outliers exist in the results. Default: true
true, false Was this page helpful?

