---
title: "Exchange rate history"
method: GET
path: "/v1/currency/history"
tags: ["Analytics"]
---

# Exchange rate history

`GET /v1/currency/history`

## Request

- Base URL: `https://api.metalcharts.org`
- URL: `https://api.metalcharts.org/v1/currency/history`
- Auth: none declared

Daily ECB reference rates for one currency against `base` (units of `currency` per one `base`), one point per ECB publication day, back to 1999-01-04. Depth follows the plan's history limit.

## Query parameters

- `currency` string, required: The currency to chart.
- `base` string: Quoted against. Default USD.
- `range` string: One of 1M, 3M, 6M, 1Y, 5Y, ALL, MAX. Default 1M.
- `start` string: YYYY-MM-DD; overrides range.
- `end` string: YYYY-MM-DD, used with start. Default today.

## Response `200`

Daily rates, oldest first.

- object
  - `success` boolean, required
  - `data` object[], required
    - `date` string, required
    - `rate` number, required

## Other responses

- `400`: Unsupported currency or base, or an invalid range or date.
- `403`: The window is further back than the plan's history allows.

---

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