Ecb Exchange Rate
ecb_exchange_rateAUTHORITATIVE euro foreign-exchange reference rate from the European Central Bank — the official daily EUR spot rate against a target currency (ISO 4217: USD, GBP, JPY, CHF, ...). Use for "current EUR/USD rate", "EURUSD spot", "what is the euro worth in dollars", and for historical FX series. Returns latest ({period, value}) for the current rate plus recent labeled observations; pass start_period/end_period (or last_n) for a longer history. This is the published mid-market reference rate, not a dealer or exchange quote, so there is no bid/ask spread.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| last_n | No | Return only the last N observations. Defaults to 30 when no start_period is given. | |
| currency | Yes | ISO 4217 currency code (USD, GBP, JPY, ...) | |
| frequency | No | Observation frequency — D (daily), M (monthly), Q (quarterly), A (annual). Default D. | |
| end_period | No | End date (YYYY-MM-DD) | |
| start_period | No | Start date (YYYY-MM-DD) |