Ask for interval=1m on any coin and you get one candle per minute. Minute candles are kept 30 days on Free and 90 days on Starter, Basic and Pro. Minute history begins 23 Nov 2026 and grows a day each day, up to those limits. Hourly and daily candles start 1 Jan 2023, or when the coin began; /v2/coverage shows hourly_from and daily_from. View pricing or read the API reference.
Request
curl -s -H "Authorization: Bearer $COINPRICE_API_KEY" \ "https://api.coinprice.dev/v2/coins/bitcoin/ohlc?interval=1m&limit=3"[ [1795494600000,60459.80501,60459.80501,60436.80787,60436.80787], [1795494660000,60434.79031,60441.52715,60393.2856,60424.14821], [1795494720000,60424.80241,60459.70816,60424.80241,60459.70816]]Each row is [time_ms, open, high, low, close]. The time is the start of the candle in Unix milliseconds, UTC. Rows come oldest first. Prices are in USD unless you pass vs_currency. History in another currency is converted at today's rate.
Parameters
| Parameter | Values | Default |
|---|---|---|
interval | 1m, 5m, 15m, 1h, 4h, 1d | 1h with no window. With days or from, the step is picked from the window: 15m up to 2 days when minute data covers it, else 1h; 4h up to 30 days; 1d over 30 |
limit | 1 to 5,000 candles | 500 |
from, to | Unix seconds, ISO 8601 or YYYY-MM-DD | the newest candles |
days | number of days back from now | none |
vs_currency | any code from /v2/simple/supported_vs_currencies | usd |
A window older than the minutes held starts at the oldest minute held: history begins 23 Nov 2026, and plans keep 30 or 90 days. Use 1h or 1d for anything older. A request returns at most 5,000 rows, and a longer window returns the newest rows, so page with from and to.
Errors
{ "error": "invalid_request", "message": "interval is 1m, 5m, 15m, 1h, 4h or 1d.", "request_id": "req_fd0360d0d7ed4e76"}| Status | error | When |
|---|---|---|
| 400 | invalid_request | bad interval, limit, from, to or vs_currency |
| 401 | unauthorized | missing or unknown API key |
| 404 | not_found | unknown coin id |
| 429 | rate_limited | over your plan's calls a minute; wait for Retry-After |
| 429 | quota_exceeded | the month's calls are used up; no Retry-After, resets on the 1st of the month UTC. Stop and tell the user |
| 500 | internal_error | a fault on our side |
| 503 | unavailable | prices are briefly unavailable; retry |
How candles are built
Each minute's price is the median of the latest prices from seven exchanges, after outliers are dropped, so one venue's spike does not move the candle. Five-minute and 15-minute candles are rolled up from the minutes. Read the methodology.
Compared with CoinGecko
CoinGecko's interval=1m is on its Enterprise plan only and returns 1 day a request. Here every plan has minute candles and a request returns up to 5,000 of them. Full comparison.