OHLC Time-Series

Crypto Exchange Rate OHLC Time-Series API

Analyze cryptocurrency exchange rates over time with standardized OHLC data.

Retrieve historical open, high, low, and close values for cryptocurrency exchange rates through a simple API. CoinAPI's Exchange Rate OHLC Time-Series API transforms historical exchange rates into structured time intervals, making it easier to analyze price movements.

Instead of downloading raw trades from multiple exchanges and constructing candles manually, developers can request normalized exchange rate OHLC data for a selected asset pair, time period, and date range.

What Is Exchange Rate OHLC Time-Series Data?

Exchange rate OHLC time-series data summarizes how the conversion rate between two assets changed during a defined period.

For example, a daily BTC/USD record shows the opening Bitcoin exchange rate, the highest and lowest rates reached during that day, and the closing rate at the end of the period.

This structure provides a compact view of market movement without requiring applications to process every individual update.

Each interval contains four core values:

FieldDescription
OpenThe exchange rate at the beginning of the interval.
HighThe highest exchange rate recorded during the interval.
LowThe lowest exchange rate recorded during the interval.
CloseThe exchange rate at the end of the interval.

From Exchange Rate Updates to Analysis-Ready Time Series

A historical exchange rate snapshot answers what an asset was worth at one specific moment. An OHLC time series answers a broader question:

How did the exchange rate move throughout a selected period?

CoinAPI organizes historical exchange rate values into consistent intervals, allowing applications to examine changes across consecutive periods.

Developers can use the resulting data to:

  • Build cryptocurrency exchange rate charts
  • Measure price changes over time
  • Identify historical highs and lows
  • Compare performance across currencies
  • Monitor stablecoin exchange rate behavior
  • Calculate returns and volatility indicators
  • Create research and reporting datasets
  • Analyze long-term cryptocurrency valuation trends
OHLC vs. Trade Candles

Why Use Exchange Rate OHLC Instead of Raw Trade Candles?

Trade-based OHLC data represents activity on a specific exchange and market. A BTC/USD candle from one trading venue may differ from the same candle generated on another exchange because liquidity, trading activity, and available instruments are different. Exchange rate OHLC data serves a different purpose: it describes how the normalized conversion rate between two assets changed over time, rather than reproducing the trading activity of one specific market.

Trade-Based OHLCVExchange Rate OHLC
Represents a specific exchange and symbolRepresents the conversion rate between two assets
Depends on trading activity from one marketUses CoinAPI's standardized exchange rate methodology
Commonly includes traded volumeFocuses on open, high, low, and close rate values
Best for exchange-level market analysisBest for valuation, conversion, reporting, and cross-currency analysis
May vary significantly across venuesProvides a consistent asset-to-asset pricing framework

This distinction is important for applications that need a standardized historical valuation series rather than venue-specific market candles.

Standardized OHLC Data for Crypto and Fiat Currency Pairs

CoinAPI uses standardized asset identifiers across the Exchange Rates API, allowing developers to analyze exchange rate history between supported cryptocurrencies and fiat currencies.

Common examples include:

BTC/USDBTC/EURETH/USDETH/BTC
SOL/USDUSDT/USDUSDC/EURXRP/GBP

The same model can also support crypto-to-crypto and fiat-to-fiat exchange rate analysis where the requested assets are available.

Developers can discover supported assets through the metadata endpoints before requesting OHLC time-series data, helping applications validate currency identifiers and automate pair selection.

Time Periods

Choose the Time Period That Matches Your Analysis

Different applications need different levels of time-series detail. Shorter intervals help reveal intraday changes, while longer intervals provide a clearer view of broader trends. The selected period determines how individual exchange rate observations are grouped into OHLC records.

Analysis GoalSuitable Time-Series Approach
Intraday monitoringUse shorter intervals to inspect changes within a day.
Daily price trackingGroup exchange rates into daily OHLC records.
Weekly reportingAnalyze broader movement without excessive detail.
Long-term researchUse larger periods to study sustained trends.
Chart generationMatch the interval to the visible chart range and resolution.

Applications can request a defined historical range and work with consecutive OHLC periods in a consistent response structure.

Query Historical Exchange Rate Ranges

The Exchange Rate OHLC Time-Series API is designed for range-based historical analysis.

Instead of requesting one point-in-time rate, applications define the asset pair and historical window they want to study. CoinAPI returns a sequence of OHLC records covering the requested period.

This makes the endpoint suitable for:

  • Loading chart history
  • Comparing two dates
  • Measuring month-over-month performance
  • Reconstructing historical valuation trends
  • Calculating rolling indicators
  • Building repeatable research pipelines

CoinAPI uses UTC timestamps throughout the platform, creating a consistent time standard across integrations, reporting systems, and globally distributed applications.

Built for Charts, Analytics, and Financial Reporting

OHLC time-series data provides a ready-made foundation for visual and quantitative analysis.

Charting applications can map each returned record directly to a candle or price bar. Analytics systems can calculate returns, ranges, drawdowns, and volatility from the same structured values. Reporting platforms can summarize how an asset's value changed across daily, weekly, or monthly periods.

The result is a simpler pipeline:

  1. 1Select the base and quote assets.
  2. 2Define the OHLC period.
  3. 3Set the historical range.
  4. 4Retrieve the time series.
  5. 5Use the returned records in charts, models, or reports.

No exchange-by-exchange ingestion, symbol mapping, trade aggregation, or candle construction is required.

Snapshots vs. Time Series

Historical Snapshots vs. OHLC Time-Series Data

A snapshot returns the exchange rate at a specific point in time — useful when an application needs one historical value for accounting, reporting, reconciliation, or transaction valuation. An OHLC time series summarizes exchange rate movement across repeated intervals, and is better suited to charts, performance analysis, research, and trend monitoring.

Historical Exchange Rate SnapshotExchange Rate OHLC Time Series
Returns a rate for a selected momentReturns multiple consecutive time intervals
Best for point-in-time valuationBest for analyzing movement over time
Useful for invoices and transaction recordsUseful for charts and historical analytics
Produces one historical observationProduces a structured series of OHLC records
Answers “What was the rate then?”Answers “How did the rate move?”

Applications may use both datasets together. Snapshots can provide exact valuation points, while OHLC records provide the broader historical context around those values.

Analyze Cryptocurrency Performance in Any Supported Quote Asset

Performance is always relative to the currency used for comparison.

Bitcoin may rise against USD while moving differently against EUR, ETH, or another supported asset. Exchange rate OHLC data allows analysts to study these relationships directly instead of assuming that one quote currency represents every market perspective.

For example, teams can compare:

  • BTC performance in USD and EUR
  • ETH performance relative to BTC
  • Stablecoin behavior against its target fiat currency
  • Crypto treasury holdings in the company's reporting currency
  • Regional currency exposure across digital asset portfolios

This flexibility is valuable for global applications, where users, businesses, and financial teams may measure the same asset in different currencies.

Monitor Stablecoin Exchange Rate Behavior

Stablecoins are designed to track a reference asset, but their market value does not always remain exactly at the intended level.

Exchange rate OHLC time series can help teams examine:

  • Intraday deviations from the target price
  • Daily high and low exchange rates
  • The duration of depegging events
  • Recovery after periods of market stress
  • Differences between multiple stablecoins
  • Long-term stability against fiat currencies

An OHLC series provides more context than a single current price. The high and low values reveal the full range of movement inside each period, even when the closing rate later returns close to the target.

OHLC Time-Series

Turn Historical Exchange Rates into Usable Market Context

A single historical rate shows one value. An OHLC time series shows the path around it.

CoinAPI gives developers a standardized way to retrieve cryptocurrency exchange rate history as structured open, high, low, and close records. The data can move directly into charts, analytics systems, research workflows, treasury dashboards, and AI applications without requiring teams to build their own exchange aggregation and candle-generation infrastructure.