Get a bank's official rate history
get_official_rate_historyFetch official central bank exchange rate history for any currency pair, providing daily rates, rate types, and methods across custom date ranges.
Instructions
Use this for a date-by-date series of one bank's OFFICIAL rates — 'ECB USD rate for every day of 2025', 'how did the CBSL official rate move last quarter'. Returns one row per published date: { series: [{ date, rate, rate_type, derived, method }] }. Give either symbol (matches either side of the pair vs the bank's home currency) or a source+target pair. Defaults to the last year when from/to omitted. Paid plans only, and BILLED BY VOLUME: one API call per month of history covered (a year-long series costs ~12 calls) — keep ranges as narrow as the question needs. For publication dates without values (free) use get_publication_calendar.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date. Defaults to today. | |
| bank | Yes | Bank/authority code as returned by list_central_banks (lowercase, e.g. 'ecb', 'fed', 'boj', 'hmrc', 'cbsl'). Call list_central_banks first if unsure — codes are short abbreviations of the institution, not country codes. | |
| from | No | Start date. Defaults to one year ago. | |
| source | No | ISO 4217 currency code, 3 letters, case-insensitive (e.g. 'USD', 'EUR', 'LKR'). | |
| symbol | No | One currency vs the bank's home currency, e.g. 'USD'. Alternative to source+target. | |
| target | No | ISO 4217 currency code, 3 letters, case-insensitive (e.g. 'USD', 'EUR', 'LKR'). |