New: Stream Prices over Server-Sent Events

Crypto OHLCV API

Open, high, low, close and volume for 2.3M+ coins at seven intervals from one minute to one month, with minute history back to December 2018. Professional plan, 30-day free trial.

30 days free, then $199 a month. Card required, cancel any time.

$199/month · 30-day free trial · https://api.coinranking.com/v2/coin/:uuid/ohlcv

Latest candles
# The last 200 hourly candles for Bitcoin, in US dollars
curl 'https://api.coinranking.com/v2/coin/Qwsogvtv82FCd/ohlcv?interval=hour&limit=200' \
  -H 'x-access-token: YOUR_KEY'

Any Range, Gapless, Cacheable

The same window always returns the same candles, pages never overlap, and completed windows cache for an hour.

  • Up to 1,440 candles per response, one day of minutes. Drive paging from data.paging.next, never from the candle count: a short page can still have a next.
  • Minute candles back to December 2018. All seven intervals accept from and to, so hour, day, week and month windows page the same way.
  • Historical windows return Cache-Control: max-age=3600; windows that touch the present return max-age=60.
  • Deep-history requests share a daily fair-use quota. Exceeding it returns a 429 with TOO_MANY_REQUESTS; back off and resume from the same cursor.
  • Old candles are honest about their gaps: avg is null in deep history, and where only a close survived, open, high and low equal it. The docs list every case.

Candles for Spot and for Futures

One candle shape for aggregated spot and for perpetual futures.

What Developers Build on OHLCV Data

Candles are the input to almost everything quantitative.

Candlestick Charts

Seven intervals map to seven chart buttons. Start and end timestamps per candle, no alignment code.

Backtests

Minute candles since December 2018, paged in 1,440-candle blocks that an HTTP cache can hold.

Strategy Signals

Build the live candle from WebSocket rates and close it against the last OHLCV candle.

Data Warehouses

Deterministic windows make backfills idempotent: rerun a range and get identical rows.

OHLCV by Plan

The OHLCV endpoint needs the Professional plan; price history without candles is on every plan.

Coinranking API plans and what each includes for this feature
Free · $0Startup · $49/moProfessional · $199/mo
Price$0$49$199
OHLCV candlesSeven intervals, minute history to 2018
Candles per request5,000 latest, or 1,440 per window page
Futures OHLCVIncluded
Price history (no candles)1 yearAll timeAll time
Free trial30 days30 days

30-day free trial on Professional. Compare every plan.

OHLCV Questions

Get the OHLCV Candles

Seven intervals and minute history to 2018, free for 30 days on Professional.

30 days free, then $199 a month. Card required, cancel any time.

    Crypto OHLCV API: 1-Minute to 1-Month Candles | Coinranking