Get historical prices

get/api/v1/marketdata/cryptocompare/historical/prices

Get a list of historical prices in a specified time range.

Query Parameters

  • basestringRequired
    The asset or currency to compare to the quote asset or currency (case insensitive).
  • quotestringRequired
    The asset or currency to compare to the base asset or currency (case insensitive).
  • intervalstringRequired
    Unit of time.
    Enum: minutehourday
  • startstring(date-time)
    Start time for the pricing data range. If not provided, defaults to 1 interval before to the current time.
    Example: "2019-05-02T15:27:35.773Z"
  • endstring(date-time)
    End time for the pricing data range. If not provided, defaults to the current time.
    Example: "2019-05-02T15:27:35.773Z"

200 Response

time string <date-time>required
open number <float>required
high number <float>required
low number <float>required
close number <float>required
base_volume number <float>required
quote_volume number <float>required

400 Response

error string required
errorName string required