Check the setup
- Python 3.10 or newer
- A notebook environment such as Jupyter or Google Colab
- An internet connection
Euro-area official statistics on exchange rates, prices, and monetary aggregates for building policy-rate and inflation monitors.
From source to product signal
The ECB SDMX 2.1 API returns official euro-area statistics. Start with one exchange-rate series and a short observation window. Series keys are dense, vintages can be revised, and a rate observation is not a trading signal.
Install the packages, then run the notebook cell.
python -m pip install pandas requests
import pandas as pd
import requests
response = requests.get(
"https://data-api.ecb.europa.eu/service/data/EXR/D.USD.EUR.SP00.A",
params={"lastNObservations": 10, "format": "jsondata"},
headers={"Accept": "application/json"},
timeout=30,
)
response.raise_for_status()
payload = response.json()
series = payload["dataSets"][0]["series"]
observations = next(iter(series.values()))["observations"]
dates = payload["structure"]["dimensions"]["observation"][0]["values"]
rows = [
{"date": dates[int(index)]["id"], "usd_per_eur": value[0]}
for index, value in observations.items()
]
rates = pd.DataFrame(rows)
print(rates)Test a useful signal
Test whether one ECB series can power a bounded FX monitor.
European Central Bank is an intergovernmental source. Last verified 2026-08-18. Temporal coverage: euro-area series with varying starts.