GET
Get 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.
Requires access token scope: crypto_compare
Query Params
-
basestring requiredThe base currency symbol (the asset being priced). Must be a BitGo-supported instrument symbol (case-insensitive). -
quotestring requiredThe quote currency symbol (the currency in which the price is expressed). Must be a BitGo-supported instrument symbol (case-insensitive). -
intervalstring enum requiredThe time interval for each price data point.minutehourday -
timestampstring date-timeThe specific time to retrieve the price for (RFC 3339 format). If not provided, returns the latest available price.
Responses
200
Returns a single OHLCV price data point for the specified time.
Response Body
object
OHLCV price data for a single time interval.
-
timestring date-time requiredThe timestamp marking the start of this interval (RFC 3339 format). -
opennumber float requiredThe opening price at the start of the interval. -
highnumber float requiredThe highest price reached during the interval. -
lownumber float requiredThe lowest price reached during the interval. -
closenumber float requiredThe closing price at the end of the interval. -
base_volumenumber float requiredThe total trading volume in the base currency during the interval. -
quote_volumenumber float requiredThe total trading volume in the quote currency during the interval.
400
Bad request.
Response Body
object
Error response for market data requests.
-
errorstring requiredDetailed error message. -
errorNamestring requiredError code identifier.