---
title: "Get historical prices"
method: GET
path: "/api/v1/marketdata/cryptocompare/historical/prices"
tags: ["Market Data"]
---

# Get historical prices

`GET /api/v1/marketdata/cryptocompare/historical/prices`

Get a list of historical OHLCV (Open, High, Low, Close, Volume) prices for a currency pair within a specified time range.
Using this endpoint requires an access token with the appropriate enterprise ID.

**Requires access token scope:** `crypto_compare`

## Query parameters

- `base` string, required
- `quote` string, required
- `interval` 'minute' | 'hour' | 'day', required
- `start` string, date-time
- `end` string, date-time
- `nextBatchPrevId` string

## Response `200`

Returns historical-price data points.
Also returns a page cursor if there are more than 1,000 results.

- HistoricalPriceResult — Response containing historical price data with pagination support.
  - `data` object, required
    - `prices` object, required — A map of currency pair to price data
    - `nextBatchPrevId` string, nullable — Pagination cursor for fetching the next batch of results. Null if there are no more results.

## Other responses

- `400` — Bad request.

---

[API](https://skmtc.net/bitgo/apis/bitgo-api.md) · [All operations](https://skmtc.net/bitgo/apis/bitgo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bitgo/bitgo-api/revisions/e445c15e5bee/schema)
