Definition

OHLCV is an aggregated form of market data standing for Open, High, Low, Close and Volume. OHLCV data includes 5 data points: the Open and Close represent the first and the last price level during a specified interval. High and Low represent the highest and lowest reached price during that interval. Volume is the total amount traded during that period. This data is most frequently represented in a candlestick chart, which allows traders to perform technical analysis on intraday values. We provide OHLCV data with minutely, hourly or daily granularity.

Spread OHLCV Feature
The Spread OHLCV feature provides pricing data for spread instruments composed of two contracts, such as a perpetual swap and a futures contract. It tracks the price difference (spread) between the two instruments, offering insights into market sentiment and opportunities for advanced traders. We offer OKX Nitro Spreads and Deribit and Thalex Combos.


Details

For the OHLCV values, the price is always in quote and the volume unit is always in base. For example, if the pair was BTC-USD, then the price values returned are in USD and the volume value is in BTC.

One thing to note is that exchanges compute their daily candles differently; they don't all use midnight UTC. See table below for reference:

Spot ExchangeTime of daily compute
binance00:00:00
binanceus00:00:00
bitfinex00:00:00
bitget16:00:00
bithumb15:00:00
bitmex00:00:00
bitstamp00:00:00
Bitvavo00:00:00
Blockchain.com00:00:00
bybit00:00:00
Coinbase Intl00:00:00
deribit08:00:00
dYdXN/A
ftx00:00:00
ftxus00:00:00
gateio00:00:00
gdax00:00:00
gemini04:00:00 and 00:00:00
hashkey00:00:00
huobi16:00:00
kraken00:00:00
lmaxN/A (only provides minutely candles)
mexc00:00:00
mercadobitcoin00:00:00
OKCoin00:00:00
okex16:00:00
Phemex16:00:00
poloniex00:00:00
kucoin00:00:00
zb16:00:00

API Endpoints

Spot

/markets/spot/ohlcv/information
/market/spot/ohlcv/{pair}/latest
/market/spot/ohlcv/{exchange}/exchange/latest
/markets/spot/ohlcv/{pair}/historical
/market/spot/ohlcv/{exchange}/exchange/historical

Futures

/markets/futures/ohlcv/information
/market/futures/ohlcv/{instrument}/latest
/market/futures/ohlcv/exchange/{exchange}/latest
/markets/futures/ohlcv/{instrument}/historical
/market/futures/ohlcv/exchange/{exchange}/historical

Options

/markets/options/ohlcv/information
/market/options/ohlcv/{instrument}/latest
/market/options/ohlcv/exchange/{exchange}/latest
/markets/options/ohlcv/{instrument}/historical
/market/options/ohlcv/exchange/{exchange}/historical


Availability

Our OHLCV endpoints are available via REST API for historical (time series) data as well as WebSockets for real-time data.

This table outlines how far back our OHLCV data goes across the different exchanges within the Spot, Futures, and Options markets:

ExchangeSpot Start Date*Futures Start Date*Options Start Date*
Bitstamp2011-08-18XX
Bitfinex2013-01-14XX
Bitget2024-09-262024-10-02X
Bitmex2024-03-292016-03-29X
Bitvavo2025-03-25XX
Blockchain.com2025-03-31XX
Bullish2025-03-26XX
Coinbase Intl2025-03-092025-03-09X
Kraken2013-10-06XX
Deribit2025-03-262018-08-132021-11-17
dYdXX2024-11-22X
GDAX2014-12-01XX
Gemini2015-10-08XX
Gate.io2025-01-07XX
Binance2017-08-172019-09-082025-02-19
Binance.US2019-09-17XX
Bithumb2018-10-09XX
Hashkey2025-02-25XX
Huobi2019-02-012020-12-31X
ZB2019-04-05XX
OKCoin2025-03-24XX
OKeX2019-10-012021-01-01X
Phemex2025-03-21XX
FTX**2020-12-312019-07-20X
LMAX2021-04-04XX
Mercado Bitcoin***2024-03-20XX
MEXC2017-10-25XX
Bybit2021-09-012018-11-14X
Poloniex2021-10-12XX
Kukoin2025-02-14XX

*These dates represent the oldest start date we have for OHLCV data across all pairs/contracts
**As of 2022-11-12, we stopped supporting FTX, but historical data will remain available
***The OHLCV data for Mercado Bitcoin is currently available exclusively through S3


Frequently Asked Questions

What are your standard offered timeframes?

  • The standard offered timeframes are 1 minute, 1 hour and 1 day.

How is OHLCV data useful?

  • OHLCV data is useful because you can use it to create visual charts which can show increasing or decreasing momentum for a specific trading pair. When the open and close are far apart it shows strong momentum, and when the open and close are close together it shows indecision or weak momentum. The high and low show the full price range of the period, useful in assessing volatility. There several patterns traders watch for on OHLCV charts.