REST APITradeMarket Data

GET

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

  • base string required
    The base currency symbol (the asset being priced). Must be a BitGo-supported instrument symbol (case-insensitive).
  • quote string required
    The quote currency symbol (the currency in which the price is expressed). Must be a BitGo-supported instrument symbol (case-insensitive).
  • interval string enum required
    The time interval for each price data point.
    minutehourday
  • timestamp string date-time
    The 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.
  • 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
Bad request.

Response Body

object

Error response for market data requests.
  • error string required
    Detailed error message.
  • errorName string required
    Error code identifier.