🚀 Metrics API V2 Live:

Complete Market Intelligence - CEX + DeFi Data in One API
backgroundbackground

OHLCV

OHLCV stands for Open, High, Low, Close, and Volume - these are the key data points used to track price movement of stocks, cryptocurrencies, or other financial instruments over a specific time period (like hourly or daily).

Every cryptocurrency trade tells a story. But when Bitcoin moves from $40,000 to $67,000 and back to $50,000 in a single day with 50,000 transactions, how do you capture that chaos in a format that algorithms can understand? Enter OHLCV - the five-number summary that transforms millions of individual trades into the building blocks of every trading strategy, technical indicator, and market analysis tool ever created.

While traders see candlestick charts, algorithms see OHLCV data streams - the mathematical DNA of every price movement in cryptocurrency history.

OHLCV is a standardized data format that summarizes cryptocurrency price action and trading activity over specific time periods using five key metrics: Open, High, Low, Close, and Volume. This format converts complex trading activity into structured data points essential for technical analysis, algorithmic trading, and market research.

OHLCV represents the universal language of financial markets. Every candlestick chart, trading indicator, and market analysis tool relies on these five fundamental data points. The format provides a standardized way to compress thousands of individual cryptocurrency trades into meaningful insights about price trends, volatility, and market sentiment.

This data structure proves essential for cryptocurrency trading applications, from simple price tracking to sophisticated algorithmic strategies that process millions of OHLCV data points across multiple exchanges and timeframes.

OHLCV data aggregates all trading activity within defined time periods into five essential metrics. Each OHLCV data point represents a complete summary of market activity for its specific timeframe.

The Five Components Explained:

Open (O): The first transaction price when the time period begins. For daily data, this represents the cryptocurrency price at midnight UTC.

High (H): The highest price reached during the entire time period. This shows maximum buying pressure and resistance levels.

Low (L): The lowest price reached during the time period. This indicates maximum selling pressure and support levels.

Close (C): The final transaction price when the time period ends. This becomes the opening price for the next period.

Volume (V): Total quantity of cryptocurrency traded during the period. This measures market activity and liquidity.

Time Period Flexibility:

  • 1-minute OHLCV: High-frequency trading and scalping strategies
  • 1-hour OHLCV: Intraday analysis and short-term trend identification
  • Daily OHLCV: Swing trading and medium-term market analysis
  • Weekly/Monthly OHLCV: Long-term investment and macro trend analysis

Cryptocurrency markets generate OHLCV data continuously across hundreds of exchanges and thousands of trading pairs. This creates the largest financial dataset in human history - billions of OHLCV data points representing every Bitcoin, Ethereum, and altcoin transaction.

Critical Trading Applications:

Technical Analysis: OHLCV data powers every technical indicator from moving averages to RSI, MACD, and Bollinger Bands for cryptocurrency market analysis.

Algorithmic Trading: Trading bots process OHLCV streams to identify patterns, execute strategies, and manage risk across multiple cryptocurrency exchanges.

Backtesting: Historical OHLCV data enables strategy testing across years of market conditions, bear markets, bull runs, and volatility cycles.

Market Research: Analysts use OHLCV data to study cryptocurrency adoption, market manipulation, and institutional trading patterns.

Real-World Example:

Bitcoin Daily OHLCV - March 12, 2020 (Black Thursday)
Open: $7,900
High: $8,100
Low: $3,850
Close: $5,000
Volume: 180,000 BTC

This single OHLCV data point captures one of cryptocurrency history's most dramatic price crashes, showing 50% intraday volatility and record trading volume.

  • The largest Bitcoin OHLCV data point recorded a 24-hour volume of 2.1 million BTC during the May 2021 market peak
  • A single day of cryptocurrency OHLCV data across all exchanges represents over $100 billion in trading volume
  • The most volatile OHLCV data point in crypto history showed a 95% intraday range during the 2017 altcoin bubble
  • Professional trading firms process over 50 million OHLCV data points daily across global cryptocurrency markets
  • The smallest timeframe OHLCV data available goes down to 1-second intervals for ultra-high-frequency trading
  • During Bitcoin's 2021 bull run, daily OHLCV data showed 47 consecutive days with closing prices higher than opening prices
  • Some cryptocurrency exchanges generate new OHLCV data points every millisecond during peak trading periods
  • The largest OHLCV dataset spans over 4,000 cryptocurrencies across 15 years of trading history
  • Machine learning models can predict short-term price movements with 68% accuracy using only OHLCV data patterns

CoinAPI provides comprehensive OHLCV data across 370+ cryptocurrency exchanges with standardized formatting and multiple delivery methods. The platform aggregates millions of individual trades into clean, consistent OHLCV data streams for trading applications and market analysis.

Comprehensive Coverage: OHLCV data for Bitcoin, Ethereum, and thousands of altcoins across major exchanges including Binance, Coinbase, Kraken, and hundreds of regional platforms.

Multiple Timeframes: Access 1-minute, 5-minute, 1-hour, daily, weekly, and monthly OHLCV data through unified APIs with consistent formatting across all exchanges.

Real-Time and Historical: Live OHLCV updates via WebSocket connections plus complete historical data back to 2010 for backtesting and research applications.

High-Quality Data: Advanced filtering removes wash trading, removes invalid data points, and ensures OHLCV accuracy for professional trading applications.

Example OHLCV Request:

GET /v1/ohlcv/BINANCE_SPOT_BTC_USDT/history?period_id=1HRS&limit=100

WebSocket OHLCV Subscription:

{
"type": "hello",
"subscribe_data_type": ["ohlcv"],
"subscribe_filter_symbol_id": ["BINANCE_SPOT_BTC_USDT"],
"subscribe_filter_period_id": ["1HRS"]
}

Flat Files Access: Bulk OHLCV downloads for machine learning model training, extensive backtesting, and academic research requiring years of historical cryptocurrency data.

OHLCV data forms the foundation for every technical analysis method used in cryptocurrency trading. Professional traders combine multiple OHLCV timeframes to identify trends, support/resistance levels, and optimal entry/exit points.

Popular OHLCV Applications:

Candlestick Patterns: Japanese candlestick analysis using OHLCV data to identify reversal signals like doji, hammer, and engulfing patterns.

Moving Averages: Simple and exponential moving averages calculated from OHLCV close prices to identify trend direction and momentum.

Volatility Analysis: High-Low ranges and average true range calculations using OHLCV data to measure market volatility and set position sizes.

Volume Analysis: OHLCV volume data combined with price action to confirm trends, identify accumulation/distribution phases, and spot potential breakouts.

Universal standard: OHLCV provides the foundational data format for all cryptocurrency technical analysis, trading algorithms, and market research applications.

Timeframe flexibility: Different OHLCV periods serve different trading strategies, from scalping to long-term investment approaches.

Data quality matters: Clean, accurate OHLCV data determines the reliability of trading strategies, backtesting results, and market analysis conclusions.

CoinAPI advantage: Comprehensive OHLCV coverage across 370+ exchanges with standardized formatting, real-time updates, and extensive historical data for professional applications.

Learn more:

To explore further:

These resources provide implementation details, analysis techniques, and practical examples for developers, traders, and cryptocurrency market researchers.