Get spot prices

get/api/v1/marketdata/cryptocompare/spot/prices

Get a single OHLCV (Open, High, Low, Close, Volume) price data point for a currency pair at a specific time. Using this endpoint requires an access token with the appropriate enterprise ID.

Query Parameters

  • basestringRequired
    The base currency symbol (the asset being priced). Must be a BitGo-supported instrument symbol (case-insensitive).
  • quotestringRequired
    The quote currency symbol (the currency in which the price is expressed). Must be a BitGo-supported instrument symbol (case-insensitive).
  • intervalstringRequired
    The time interval for each price data point.
    Enum: minute hour day
  • timestampstring<date-time>
    The specific time to retrieve the price for (RFC 3339 format). If not provided, returns the latest available price.
    Example: 2024-12-17T15:00:00.000Z

200 Response

time string <date-time>required
The timestamp marking the start of this interval (RFC 3339 format).
open number <float>required
The opening price at the start of the interval.
high number <float>required
The highest price reached during the interval.
low number <float>required
The lowest price reached during the interval.
close number <float>required
The closing price at the end of the interval.
base_volume number <float>required
The total trading volume in the base currency during the interval.
quote_volume number <float>required
The total trading volume in the quote currency during the interval.

400 Response

error string required
Detailed error message.
errorName string required
Error code identifier.