Build Real-time Charts with Coingecko's Crypto OHLCV Data

Build Real-time Charts with Coingecko's Crypto OHLCV Data

Access OHLCV (Open, High, Low, Close, Volume) crypto price data for real-time and historical candlestick charts.

Access OHLCV (Open, High, Low, Close, Volume) crypto price data for real-time and historical candlestick charts.

Why developers_ choose us

Extensive. Fast. Reliable. Enterprise-Grade.

Weโ€™re always making our API better with more endpoints, greater data granularity and lower latency. See whatโ€™s new โ†’

51M+ Tokens

Complete token coverage with on-chain data

Trusted by Industry Builders

Enterprise-Grade Service

Enjoy tailored integration guidance, 24/7 dedicated support, and a custom API plan designed to scale with your business.

13+ Years

Of Historical Data

Up to Sub-second

Real-time Data Update

99.9% Uptime SLA

Enterprise-grade infrastructure

10 billion

Monthly API calls

360+

Networks

2,000+

Exchanges

Coingecko API is SOC 2 Type 2 compliant. Our systems and processes meet rigorous industry standards to safeguard data.

Why developers_ choose us

Extensive. Fast. Reliable. Enterprise-Grade.

Weโ€™re always making our API better with more endpoints, greater data granularity and lower latency. See whatโ€™s new โ†’

51M+ Tokens

Complete token coverage with on-chain data

Trusted by Industry Builders

Enterprise-Grade Service

Enjoy tailored integration guidance, 24/7 dedicated support, and a custom API plan designed to scale with your business.

13+ Years

Of Historical Data

Up to Sub-second

Real-time Data Update

99.9% Uptime SLA

Enterprise-grade infrastructure

10 billion

Monthly API calls

360+

Networks

2,000+

Exchanges

Coingecko API is SOC 2 Type 2 compliant. Our systems and processes meet rigorous industry standards to safeguard data.

Why developers_ choose us

Extensive. Fast. Reliable. Enterprise-Grade.

Weโ€™re always making our API better with more endpoints, greater data granularity and lower latency. See whatโ€™s new โ†’

51M+ Tokens

Complete token coverage with on-chain data

Trusted by Industry Builders

Enterprise-Grade Service

Enjoy tailored integration guidance, 24/7 dedicated support, and a custom API plan designed to scale with your business.

13+ Years

Of Historical Data

Up to Sub-second

Real-time Data Update

99.9% Uptime SLA

Enterprise-grade infrastructure

10 billion

Monthly API calls

360+

Networks

2,000+

Exchanges

Coingecko API is SOC 2 Type 2 compliant. Our systems and processes meet rigorous industry standards to safeguard data.

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.

Build any tool you can imagine

Build any tool you can imagine

Integrate BTC Dominance, Volume & Supply Charts Seamlessly

Integrate BTC Dominance, Volume & Supply Charts Seamlessly

Over 70 endpoints to power your application with actionable crypto insights

Over 70 endpoints to power your application with actionable crypto insights

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.

Loved by the Crypto Community

Loved by the Crypto Community

Loved by the Crypto Community

Frequently asked questions

What is OHLC data in crypto?

OHLC data stands for Open, High, Low and Close, the key price points of a cryptocurrency over a time period.

  • Open: The price at the start of the period.

  • High: The highest price during the period.

  • Low: The lowest price during the period.

  • Close: The price at the end of the period.

OHLCV adds trading Volume. Coingecko API offers both:

Use the data to build candlestick charts, backtest trading strategies and analyze price moves across timeframes. See the Coin Charts and Onchain Charts endpoints.

What is OHLC data in crypto?

OHLC data stands for Open, High, Low and Close, the key price points of a cryptocurrency over a time period.

  • Open: The price at the start of the period.

  • High: The highest price during the period.

  • Low: The lowest price during the period.

  • Close: The price at the end of the period.

OHLCV adds trading Volume. Coingecko API offers both:

Use the data to build candlestick charts, backtest trading strategies and analyze price moves across timeframes. See the Coin Charts and Onchain Charts endpoints.

How do I plot candlestick charts using OHLC data with TradingView?

Fetch OHLC data from the Coingecko API, then plot it with TradingViewโ€™s Lightweight Charts library.

  1. Get OHLC data: Call Coin OHLC Chart by ID with the coin ID, vs_currency and days. Paid plans can also set interval to daily or hourly.

  2. Format the data: Convert each candle into the time, open, high, low and close format the library expects.

  3. Create the chart: Add Lightweight Charts to your app and create a candlestick series.

  4. Load the data: Pass your formatted candles to the series to render the chart.

For a full walkthrough, read our guide to build a candlestick chart app.

How do I plot candlestick charts using OHLC data with TradingView?

Fetch OHLC data from the Coingecko API, then plot it with TradingViewโ€™s Lightweight Charts library.

  1. Get OHLC data: Call Coin OHLC Chart by ID with the coin ID, vs_currency and days. Paid plans can also set interval to daily or hourly.

  2. Format the data: Convert each candle into the time, open, high, low and close format the library expects.

  3. Create the chart: Add Lightweight Charts to your app and create a candlestick series.

  4. Load the data: Pass your formatted candles to the series to render the chart.

For a full walkthrough, read our guide to build a candlestick chart app.

How can I create OHLCV candlestick chart with Python?

This method charts OHLCV for a DEX pool using onchain data.

  1. Set up Python: Install Pandas, Matplotlib and mplfinance, and get your Coingecko API key.

  2. 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.

  3. Plot the chart: Use mplfinance to draw the candlesticks.

  4. 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.

Supercharge Your Project with Coingecko API

Supercharge Your Project with Coingecko API

Data Delivery
Legal
ยฉ 2026 Coingecko. All Rights Reserved.
Data Delivery
Legal
ยฉ 2026 Coingecko. All Rights Reserved.
Data Delivery
Legal
ยฉ 2026 Coingecko. All Rights Reserved.