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
# 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
fromandto, so hour, day, week and month windows page the same way. - Historical windows return
Cache-Control: max-age=3600; windows that touch the present returnmax-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:
avgis 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.
Aggregated spot candles across every exchange Coinranking tracks. Latest candles by limit, or any window by from and to.
Candles for a coin's perpetual futures, next to its open interest and funding rate.
SMA and EMA at 20, 50, 100 and 200 periods with Bollinger Bands, plus RSI, MACD, ATR and Supertrend, computed on the interval you request.
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.
| Free · $0 | Startup · $49/mo | Professional · $199/mo | |
|---|---|---|---|
| Price | $0 | $49 | $199 |
| OHLCV candles | — | — | Seven intervals, minute history to 2018 |
| Candles per request | — | — | 5,000 latest, or 1,440 per window page |
| Futures OHLCV | — | — | Included |
| Price history (no candles) | 1 year | All time | All time |
| Free trial | — | 30 days | 30 days |
30-day free trial on Professional. Compare every plan.
OHLCV Questions
Coinranking API OHLCV endpoint returns candles at seven intervals: minute, 5minutes, hour, 8hours, day, week and month. Each candle carries startingAt, endingAt, open, high, low, close, average, the rolling 24-hour volume and, where recorded, the volume traded inside the interval. See the OHLCV documentation.
Minute-resolution OHLCV history from Coinranking is available back to December 2018, and all seven intervals accept a from/to window. Pass from and optionally to as epoch seconds to fetch a window; each response returns up to 1,440 candles and a data.paging.next cursor to continue, so a multi-year minute series is a loop, not a limit.
OHLCV candles are a Professional endpoint on Coinranking API, at $199 a month with a 30-day free trial. Because the endpoint is Professional-only, the Free and Startup result limits do not apply: latest-candles requests return up to 5,000 candles, and historical windows page in blocks of 1,440. Deep-history requests are subject to a daily fair-use quota.
Yes, with a caveat the docs state plainly. Passing referenceCurrencyUuid converts each candle's USD open, high, low and close at the reference currency's rate, so in a volatile reference currency the open or close can sit outside the high–low range. For true OHLC in another pair, keep USD, or build candles yourself from the WebSocket rates of both assets.
No, and the docs say which fields differ. In deep history avg is null, intervalVolume is null where the source did not record it, and for periods where only the close was preserved the open, high and low equal the close. Candles with no data at all have null prices. Recent candles carry every field.
Yes. Coinranking futures coin OHLCV endpoint returns candles for a coin's perpetual futures markets, alongside open interest and funding rate endpoints, on the Professional plan. Details are on the Crypto Futures API page.
More of Coinranking API
Same key, same base URL.
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.