Crypto OHLCV Data

Crypto OHLCV Data API

Access historical candles through REST, stream live OHLCV updates over WebSocket, integrate with AI applications through the CoinAPI MCP Server, or download bulk historical datasets using Flat Files.

CoinAPI provides a standardized cryptocurrency OHLCV dataset for building charts, backtesting strategies, calculating technical indicators, monitoring markets, and powering AI-driven financial applications.

What Is Crypto OHLCV Data?

Cryptocurrency markets generate a continuous stream of market activity. OHLCV data summarizes that activity into standardized candles over fixed periods of time.

Each candle represents how a market behaved during a specific interval:

  • Open — opening price for the period
  • High — highest price during the period
  • Low — lowest price during the period
  • Close — closing price for the period
  • Volume — total executed trading volume during the period

This makes OHLCV useful when you need market structure without processing every individual market event.

Instead of storing thousands or millions of market updates, developers can work with compact time-based candles that are easier to chart, analyze, query, and visualize.

OHLCV candles can be generated at different granularities, from short intraday intervals to longer daily or weekly periods, depending on the analysis use case.

Clean OHLCV data also helps compare the same asset across multiple venues without dealing with inconsistent exchange formats. When combined with trades, quotes, or order book data, OHLCV provides a higher-level view of market behavior while preserving access to deeper market context.

This is why OHLCV is often the starting point for crypto charts, trading dashboards, historical research, and automated market analysis.

What's Included in CoinAPI OHLCV Data?

Each CoinAPI OHLCV candle summarizes market activity over a specific time interval and includes pricing information, timestamps, and market statistics.

FieldWhat it means
time_period_startStart of the candle interval
time_period_endEnd of the candle interval
time_openTimestamp of the opening price observation for the period
time_closeTimestamp of the closing price observation for the period
price_openOpening price for the period
price_highHighest price during the period
price_lowLowest price during the period
price_closeClosing price for the period
volume_tradedTotal executed volume during the period (may be 0)
trades_countNumber of executed trades during the period (may be 0)

Together, these fields provide everything needed to build candlestick charts, calculate technical indicators, analyze historical markets, and monitor price movements. Candles may contain zero traded volume and zero trades while still representing the market state for the period.

Available REST Endpoints

CoinAPI provides REST endpoints for retrieving historical candles, latest candles, and exchange-level OHLCV history across any supported candle interval. For continuously updated candles, OHLCV is also available through the CoinAPI WebSocket API.

Historical OHLCV Data

Returns historical OHLCV candles for a specific CoinAPI symbol. Data is returned in ascending chronological order and can be requested for any supported candle interval.

Response includes
  • candle start and end time
  • opening and closing price observations
  • open, high, low, and close prices
  • executed trading volume
  • trade count

Supports up to 100,000 items per request. REST data may be delayed a few seconds — use the real-time OHLCV stream for zero-delay candles. For OHLCV by asset pair (e.g. BTC/USD), use Exchange Rates timeseries data.

Historical OHLCV Data by Exchange

Returns historical OHLCV data for a specific exchange. Each response includes both the exchange-native symbol identifier and the normalized CoinAPI symbol identifier.

Response includes
  • candle start and end time
  • opening and closing price observations
  • open, high, low, and close prices
  • executed trading volume
  • trade count
  • symbol_id_exchange
  • symbol_id_coinapi

The time_start–time_end range cannot exceed one day, and the maximum supported period_id is 1DAY.

Latest OHLCV Data

Returns the latest available OHLCV candles for a CoinAPI symbol in descending chronological order — a shortcut to the Historical endpoint with automatically generated time boundaries.

Response includes
  • candle start and end time
  • opening and closing price observations
  • open, high, low, and close prices
  • executed trading volume
  • trade count

Supports up to 100,000 items. REST data may be delayed a few seconds — use the real-time OHLCV stream for zero-delay candles.

Live OHLCV Streaming with WebSocket

For applications that require continuously updating candlestick data, CoinAPI provides OHLCV through the WebSocket API.

Unlike REST endpoints, which retrieve historical or latest snapshots, the WebSocket API streams OHLCV updates as market activity evolves. For supported candle intervals between 1SEC and 1DAY, CoinAPI publishes OHLCV updates:

  • When a candle closes and a new period begins
  • Every 5 seconds while the current candle is still being updated

This keeps trading platforms, charting applications, dashboards, and monitoring systems synchronized without repeatedly polling REST endpoints.

CoinAPI OHLCV Dataset Characteristics

  • Available through REST API, WebSocket API, MCP Server, and Flat Files
  • Historical data returned in ascending chronological order
  • Latest data returned in descending chronological order
  • WebSocket OHLCV streaming for candle periods between 1SEC and 1DAY
  • Updates every 5 seconds while an active candle forms, and immediately when it closes
  • ISO 8601 UTC timestamps
  • Normalized CoinAPI symbol identifiers
  • Supported candle intervals from 1SEC to 5YRS
  • Historical requests support up to 100,000 records
  • Filtering by period_id, time_start, time_end, and limit
  • Accessible through the CoinAPI MCP Server for AI applications
  • Bulk historical OHLCV available through Flat Files

Why Developers Use OHLCV Instead of Raw Trades

Raw trade data captures every market execution, making it ideal for detailed market analysis. OHLCV data summarizes market activity into fixed time intervals, making it significantly easier to visualize, analyze, and process.

If you're building price charts, calculating technical indicators, or analyzing historical trends, OHLCV is usually the better starting point. When you need to investigate how a particular candle formed or reconstruct market activity tick by tick, trade data provides the additional detail.

If you need…Use
Candlestick chartsOHLCV
Technical indicatorsOHLCV
Historical trend analysisOHLCV
Compact historical datasetsOHLCV
Every individual market executionTrades
Tick-level market replayTrades
Market microstructure analysisTrades

Many production systems combine both — use OHLCV to identify interesting market periods, then retrieve trade data only for the intervals that require deeper investigation.

Build a Complete Cryptocurrency Market Data Workflow

OHLCV data provides a high-level view of market activity, but most production applications combine multiple CoinAPI products to answer increasingly detailed questions. Start with historical candles, then add other datasets as your application evolves.

Your GoalStart WithThen Combine WithWhy
Discover available trading marketsMetadata APIOHLCV DataRetrieve available exchanges, assets, and normalized symbol identifiers before requesting historical candles.
Analyze price trendsOHLCV DataTrades DataIdentify significant market movements, then inspect the individual trades behind a particular candle.
Understand market liquidityOHLCV DataQuotes DataCombine historical price movements with bid and ask quotes to analyze spreads and pricing conditions.
Explain large market movesOHLCV DataOrder Book Data (L2/L3/L4)Compare completed market activity with available market depth before and during significant price changes.
Build live charting applicationsHistorical OHLCVWebSocket Market DataLoad historical candles through REST, then continue updating charts using real-time streaming data.
Analyze years of historical marketsOHLCV DataFlat Files APIDownload bulk historical datasets for quantitative research, machine learning, and large-scale analytics.
Compare assets across marketsOHLCV DataExchange Rates APINormalize cryptocurrency prices across currencies for portfolio analytics and reporting.

As your application grows, CoinAPI lets you move from aggregated OHLCV data to trades, quotes, order books, streaming market data, bulk historical datasets, and standardized exchange rates without changing providers or data formats.

Crypto OHLCV Use Cases

  • Build cryptocurrency charts
  • Calculate technical indicators
  • Backtest trading strategies
  • Investigate significant market events
  • Power AI and quantitative research
  • Build portfolio analytics and reporting

Who Uses Crypto OHLCV Data?

  • Trading platforms
  • Quantitative funds
  • Fintech applications
  • Asset managers
  • AI and machine learning teams
  • Researchers and universities
Crypto OHLCV Data

Ready to Build with CoinAPI OHLCV Data?

Explore the OHLCV documentation to retrieve historical candles, latest market data, and supported candle intervals using standardized CoinAPI symbols.

As your application evolves, combine OHLCV with Trades, Quotes, Order Books, Metadata, WebSocket streams, MCP, Exchange Rates, and Flat Files to build a complete cryptocurrency market data platform on top of the CoinAPI ecosystem.