Create Candlestick Charts for In-depth Analysis
Build interactive candlestick charts using historical OHLCV (Open, High, Low, Close, Volume) price data of any coins over a custom time range.
Global Market Cap Chart
Track crypto trends with global market cap and volume charts, and view BTC's dominance among major altcoins.
OHLCV On-chain Token Data
Get the OHLCV (Open, High, Low, Close, Volume) data of tokens and liquidity pools across hundreds of blockchain networks.

Circulating and Total Supply Chart
Pull historical circulating supply and total supply data of any coin available on Coingecko.


Frequently asked questions
How can I create OHLCV candlestick chart with Python?
This method charts OHLCV for a DEX pool using onchain data.
Set up Python: Install Pandas, Matplotlib and mplfinance, and get your Coingecko API key.
Fetch OHLCV data: Call Pool OHLCV Chart by Pool Address (/onchain/networks/{network}/pools/{pool_address}/ohlcv/{timeframe}) and load the candles into a Pandas DataFrame. Pool history goes back to September 2021.
Plot the chart: Use mplfinance to draw the candlesticks.
Add network and pair selection: Look up networks and pools so users can switch the chart to another network (e.g., Ethereum, Solana) or pair (e.g., PEPE/USDT).
For more details, read our full guide.

Can I stream OHLCV data in real time?
Yes. The OnchainOHLCV WebSocket channel streams OHLCV candles for any DEX pool, updating as fast as about 1 second for actively traded pools. Intervals range from 1 second to 1 day. WebSocket is available on the Basic plan and above, at 0.1 credit per response.











