Get historical prices

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

Get a list of historical prices in a specified time range. Using this endpoint requires an access token with the appropriate enterprise ID.

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: minute hour day
  • 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

data object required
prices object required
nextBatchPrevId string required

400 Response

error string required
errorName string required