---
title: "Historical rates"
method: GET
path: "/api/v1/rates/{symbol}/history"
tags: ["rates"]
---

# Historical rates

`GET /api/v1/rates/{symbol}/history`

## Request

- Base URL: `https://api.bitcompare.net`
- URL: `https://api.bitcompare.net/api/v1/rates/{symbol}/history`
- Auth: one of:
  - none
  - HTTP bearer

Historical rate timeseries for a symbol. Recent history (~30 days) is per-tick; older history is daily granularity. Depth is clamped to your plan (up to 365 days on Pro) and bounded by how far back data has been recorded.

## Path parameters

- `symbol` string, required: Coin symbol, case-insensitive

## Query parameters

- `days` integer

## Response `200`

Successful response

- object
  - `data` object, required
    - `symbol` string, required
    - `history` object[], required
      - `provider` string, required
      - `symbol` string, required
      - `category` 'lending' | 'borrowing' | 'staking' | 'price', required
      - `rate` number, required
      - `metadata` object, nullable
      - `timestamp` string, required: ISO-8601 observation time (oldest → newest)
      - `createdAt` string, required
      - `coinId` string, nullable, required
      - `providerSymbol` string, nullable
    - `count` number, required

## Other responses

- `401`: Missing or invalid API key
- `429`: Plan rate limit exceeded — see X-RateLimit-* headers and Retry-After

---

[API](https://skmtc.dev/bitcompare/apis/bitcompare-api.md) · [All operations](https://skmtc.dev/bitcompare/apis/bitcompare-api/llms.txt) · [OpenAPI document](https://skmtc.dev/bitcompare/apis/bitcompare-api/revisions/936dfbf752d2?raw)
