Get Historical OHLC Prices (Admin)

get/api/assetpricing/v1/admin/historical/prices

Retrieves historical OHLC (Open, High, Low, Close) price data for a given asset pair within a specified time range. Identical to the public endpoint but accessible without the crypto_compare scope, allowing BitGo employees to query prices in production. Time Range Limits by Interval: MINUTE (max 1 day), HOUR (max 7 days), DAY (max 90 days).

Query Parameters

  • requestobjectRequired
    Query parameters for historical OHLC price retrieval
    • basestringRequired
      Base asset identifier
      Example: BTC
    • quotestringRequired
      Quote asset identifier
      Example: USD
    • intervalstringRequired
      Price interval for OHLC data
      Example: DAY
      Pattern: ^(MINUTE|HOUR|DAY)$
      Enum: MINUTE HOUR DAY
    • startstring
      Start timestamp in ISO format
      Example: 2023-01-01T00:00:00.000Z
    • endstring
      End timestamp in ISO format
      Example: 2023-01-02T00:00:00.000Z
    • cursorstring
      Cursor for pagination - timestamp of the last record from previous page
      Example: 2023-01-01T12:00:00.000Z
    • limitinteger<int32>Required
      Number of records to return
      Example: 100

200 Response

Array of
baseAsset string required
quoteAsset string required
open number required
high number required
low number required
close number required
windowStart string <date-time>required
windowEnd string <date-time>required
isForwardFilled boolean required

400 Response

string