latestOpenAPI 3.0.32026-08-224982,0272.8 MB
e445c15e5bee
Market Data
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
get/api/v1/marketdata/cryptocompare/spot/prices
Query parameters
basestring required
The base currency symbol (the asset being priced). Must be a BitGo-supported instrument symbol (case-insensitive).
quotestring required
The quote currency symbol (the currency in which the price is expressed). Must be a BitGo-supported instrument symbol (case-insensitive).
interval'minute' | 'hour' | 'day' required
The time interval for each price data point.
timestampstring date-time
Example:2024-12-17T15:00:00.000Z
The specific time to retrieve the price for (RFC 3339 format). If not provided, returns the latest available price.
Response
Returns a single OHLCV price data point for the specified time.
Example response
{
"time": "2024-12-17T15:00:00.000Z",
"open": 89750.25,
"high": 90125.5,
"low": 89500,
"close": 90050.75,
"base_volume": 1250.85,
"quote_volume": 112456780.25
}