Fx Get Rate
fx_get_rateGet the exchange rate for a currency pair on a given date (default: latest). Returns the rate, the actual rate date (which may differ from the requested date on weekends/holidays — ECB publishes business days only), and source provenance. Cross-rates are triangulated through EUR automatically. A same-currency pair returns a rate of 1, dated to the same publication day any other pair would report for that date. Use fx_convert_currency when you want the converted amount; use this tool when you only need the rate number.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ISO 8601 date (YYYY-MM-DD). Omit for the latest available rate. ECB data starts 1999-01-04. Future dates are not supported. | |
| base_currency | Yes | ISO 4217 base currency code (e.g. USD). Call fx_list_currencies to get valid codes. | |
| quote_currency | Yes | ISO 4217 quote currency code (e.g. EUR). The rate is expressed as "how many quote units per 1 base unit". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | No | Exchange rate: units of quote currency per 1 unit of base currency. | |
| error | No | Present when the call failed. Absent on success. | |
| source | No | Always "ECB via Frankfurter" — the upstream data provider. | |
| rate_date | No | Actual date of the rate returned. | |
| rate_type | No | Always "ECB reference (mid-market)" — these are reference rates, not tradeable bid/ask. | |
| date_snapped | No | True when the API returned a different date than requested — ECB silently snaps weekend/holiday requests to the prior business day. | |
| base_currency | No | The base currency code. | |
| quote_currency | No | The quote currency code. |