GET
/
coins
/
{coin_id}
/
ohlcv
/
historical
CLI
curl --request GET \
--url 'https://api.coinpaprika.com/v1/coins/btc-bitcoin/ohlcv/historical?start=2019-01-01&end=2019-01-20'
[
  {
    "time_open": "2018-03-01T00:00:00Z",
    "time_close": "2018-03-01T23:59:59Z",
    "open": 856.012,
    "high": 880.302,
    "low": 851.92,
    "close": 872.2,
    "volume": 1868520000,
    "market_cap": 83808161204
  }
]

Path Parameters

coin_id
string
required
Example:

"btc-bitcoin"

Query Parameters

start
string
required

start point for historical data

Supported formats:

  • RFC3999 (ISO-8601) eg. 2018-02-15T05:15:00Z
  • Simple date (yyyy-mm-dd) eg. 2018-02-15
  • Unix timestamp (in seconds) eg. 1518671700
end
string

end point for ohlcv (max 1 year)

Supported formats:

  • RFC3999 (ISO-8601) eg. 2018-02-15T05:15:00Z
  • Simple date (yyyy-mm-dd) eg. 2018-02-15
  • Unix timestamp (in seconds) eg. 1518671700

If not provided calculated by the limit parameter

limit
integer
default:1

limit of result rows (max 366)

interval
string
default:24h

returned OHLCV point interval (available values: 5m, 15m, 30m, 1h, 6h, 12h, 24h)

quote
string
default:usd

returned data quote (available values: usd btc)

Response

200
application/json

successful operation

The response is of type object[].