Crypto OHLCV API
Open, high, low, close and volume for 2.4M+ coins at seven intervals from one minute to one month, with minute history back to December 2018. Growth plan, 30-day free trial.
10,000 credits a month, no credit card. WebSocket and SSE streaming are available on all plans.
$99/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.
Endpoints marked Growth have production access on Growth and higher. Free, Basic and Startup can make five successful preview requests per eligible endpoint, per account, each UTC day. Normal usage and plan limits apply. How previews work.
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 Growth plan; price history without candles is on every plan.
| Free | Basic | Startup | Growth | Professional | |
|---|---|---|---|---|---|
| Monthly price | $0 | $24 | $49 | $99 | $199 |
| Monthly credits | 10,000 | 500,000 | 1,000,000 | 2,000,000 | 5,000,000 |
| REST rate limit | 5 / second | 1,000 / minute | 2,000 / minute | 4,000 / minute | 6,000 / minute |
| API keys | 1 | 1 | 2 | 5 | Unlimited |
| Historical window, where supported | 1 year | 5 years | All time (from 2010) | All time (from 2010) | All time (from 2010) |
| Maximum results per response | 100 | 5,000 | 5,000 | 5,000 | 5,000 |
| Standard endpoints on this page | 5 successful previews / endpoint / UTC day | 5 successful previews / endpoint / UTC day | 5 successful previews / endpoint / UTC day | Production access | Production access |
Endpoint-specific limits may be lower. Preview allowances are shared across every API key on your account. Every paid plan offers a 30-day free trial. Compare all features.
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 production access starts on Growth at $99 a month. Free, Basic and Startup can make five successful previews per endpoint per account each UTC day. Free is capped at 100 results and one year of history, Basic at 5,000 results and five years, and Startup and higher at all available history where supported. Historical pages may have lower endpoint-specific limits; daily fair-use quotas still apply.
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 Growth 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 Growth.
10,000 credits a month, no credit card. WebSocket and SSE streaming are available on all plans.