Build Real-time Charts with Crypto OHLCV Data

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

Trusted by Thousands of Industry Builders

Trusted by Thousands
of Industry Builders

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.

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.

Global Market Cap Chart

Global Market Cap Chart

Track key market trends, including:

  • Global crypto market cap and volume chart
  • BTC vs. altcoin dominance chart
  • Market cap charts for specific categories such as stablecoins, DeFi, AI, and more.

Endpoint ➡️ /global/market_cap_chart
Endpoint ➡️ /coins/{id}/market_chart

OHLCV On-chain Pool Data

OHLCV On-chain Pool Data

Get the OHLCV (Open, High, Low, Close, Volume) data of a liquidity pool across hundreds of blockchain networks.

Endpoint ➡️ /onchain/networks/{network}/pools/{pool_address}/ohlcv/{timeframe}

Circulating And Total Supply Chart

Circulating & Total Supply Chart

Access historical circulating supply and total supply data of any coin available on CoinGecko.

Endpoint ➡️ /coins/{id}/circulating_supply_chart
Endpoint ➡️ /coins/{id}/total_supply_chart

4 million+

Coins

5 million+

Pools

1,300+

Exchanges

180+

Networks

Loved by the Web3 Community

“Accessing accurate crypto data on SphereOne is made possible by @coingecko. Their comprehensive API ensures our users stay informed”




SphereOne
@sphereone_
“We wanted to extend our gratitude to @bobbyong and the @coingecko team for granting us the opportunity to develop our service on top of their leading #cryptocurrency API.
None of this would have been possible without them. 💙💚”


Crescent Tracking
@TrackCrescent
“coingecko API been a real one fr I use that one constantly”






valens
@suppvalen
“CoinGecko is one of the most reliable & comprehensive cryptocurrency data providers for traders & developers.”





API3
@API3DAO
“Don't mess with the crypto geckos, they've got the best API mojo! 🦎🚀”






yasmin
@ohitsyass1
“We leverage the #CoinGecko API, known for its longstanding commitment to excellence and substantial contributions to our blockchain community.”




Synthetic exchange
@synthetic_chain

Frequently Asked Questions

OHLC data stands for Open, High, Low, and Close, which are key price points for a cryptocurrency over a specific time period.
  • Open: The price of the crypto at the start of the time period.
  • High: The highest price reached during the time period.
  • Low: The lowest price during the time period.
  • Close: The price at the end of the time period.
With CoinGecko’s API, you can easily access OHLC and OHLCV (OHLC with Volume) data for millions of cryptocurrencies. Our endpoints provide precise, up-to-date, and historical OHLC data, enabling you to:
  • Build real-time candlestick charts for your trading app or dashboard.
  • Develop and backtest your trading strategies.
  • Analyze price movements across different timeframes (e.g., hourly, daily).
Learn more about the OHLC endpoints in our API documentation.
Candlestick charts are powerful visualization tools for displaying price movements over time. By leveraging CoinGecko’s reliable OHLC data and TradingView’s charting tools, you can create visually appealing and insightful candlestick charts for your app or website. Here’s a guide to plot candlestick charts on TradingView:
  1. Get OHLC Data from CoinGecko’s API Use the CoinGecko OHLC endpoint to fetch cryptocurrency OHLC data. Specify the coin, currency, and timeframe (e.g., daily or hourly). CoinGecko’s API delivers the data in a simple JSON format, ready for integration.
  2. Format the Data for TradingView TradingView’s Charting Library requires an array of data points formatted accordingly. Convert the data from CoinGecko’s API to match the structure.
  3. Initialize the TradingView Charting Library Embed the TradingView library into your application. Configure the chart by specifying the symbol, interval, and the data feed that will provide the OHLC data.
  4. Integrate Your OHLC Data Feed Link the formatted data to TradingView’s charting library using its API. The library will render a dynamic candlestick chart, visualizing the OHLC data for the selected cryptocurrency.
For more details, check out our guide to build a candlestick chart application.
To create an interactive OHLCV candlestick crypto price chart using Python, you’d need to:
    1. Prepare Your Python Environment Ensure you have Pandas, Matplotlib, and mplfinance set up, and have generated your CoinGecko API key.
    2. Fetch OHLCV Data with CoinGecko’s API Get the historical OHLCV data using the onchain endpoint: /onchain/networks/{network}/pools/{pool_address}/ohlcv/{timeframe} Use Python to fetch the OHLCV data from CoinGecko API, and structure it into Pandas dataframe for easy handling.
    3. Create the OHLCV chart with mplfinance library Use mplfinance to visualize the data collected in Pandas.
    4. Chained API calls to fetch network & trading pairs data Fetch detailed token data from both the blockchain network (e.g., Ethereum, Solana) and its trading pairs (e.g., PEPE/USDT). This allows you to dynamically update the chart or app based on the selected network or pair.
For more details, check out our full guide.

Unlock Your Competitive Edge

with CoinGecko API

Unlock Your Competitive Edge with CoinGecko API

Unlock more possibilities with reliable, accurate and comprehensive crypto exchange data.

Download the report now

You will also receive our daily newsletter

By entering your email address, you agree to be subscribed to our daily newsletter where you will get the latest crypto news and trends. You can unsubscribe anytime.