European Central Bank (ECB Data Portal) · Fx rates
ecb-europa-eu/economic-data/fx_ratesGet market and financial data with European Central Bank (ECB Data Portal) · Fx rates from Alexandria through one Spiral API key. Official ECB EUR exchange rates (e.g. EUR/USD reference rate on a date, latest EUR/JPY, a month of EUR/GBP), or a cross rate such as USD/JPY computed from ECB reference rates. It runs in the background and returns structured JSON. Pay as you go, with no subscription.
Pricing
$0.00873 per call.
Limits
- Runs
- In the background
- Returns
- json
- Longest queue wait
- 1 hour
- Run deadline
- 5 minutes
- Longest run, end to end
- 225 minutes
- Largest inline input
- 1 MB
- Largest input file
- 2 GB
- Largest output
- 5 GB
Input
| Field | Kind | Default | Description |
|---|---|---|---|
base | text | — | With quote: also derive the cross rate quote-per-base (e.g. base USD, quote JPY gives JPY per 1 USD) from the two EUR legs on each common date. Non-EUR. Pattern: ^[A-Za-z]{3}$. |
date | text | — | One day, YYYY-MM-DD. Weekends and TARGET holidays have no rates (not_found). Mutually exclusive with start_date/end_date. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
quote | text | — | With base: the currency the cross rate is expressed in. Non-EUR, different from base. Pattern: ^[A-Za-z]{3}$. |
end_date | text | — | Last day of a range, YYYY-MM-DD (inclusive). Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
currencies | list | — | ISO 4217 codes of the currencies to quote against the euro, e.g. ["USD", "JPY", "GBP"]. Case-insensitive. EUR itself is not a series (every rate is per 1 EUR). Optional when base/quote is given. |
start_date | text | — | First day of a range, YYYY-MM-DD (inclusive). Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
Same request in code
curl https://api.spiral.ai/v1/runs \
-H "Authorization: Bearer $SPIRAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"provider": "alexandria",
"model": "ecb-europa-eu/economic-data/fx_rates",
"input": {
"base": "<base>"
}
}'Frequently asked questions
How much does European Central Bank (ECB Data Portal) · Fx rates cost?
$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.
How do I use European Central Bank (ECB Data Portal) · Fx rates through an API?
Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "ecb-europa-eu/economic-data/fx_rates"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.
Do I need an account with Alexandria to use European Central Bank (ECB Data Portal) · Fx rates?
No. Spiral runs it on its own Alexandria account and charges your Spiral balance.
Can my AI agent use European Central Bank (ECB Data Portal) · Fx rates?
Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.