Reference exchange rates (ECB, daily)
fx_ratesUse this to convert an amount between currencies or to read a daily reference exchange rate. The only source is the European Central Bank's euro foreign exchange reference rates, set once each working day around 14:15 CET. data.rates[X] is units of X for one unit of base; a rate between two currencies other than the euro is computed through the euro from the same day. date answers with the latest reference day on or before it (data.date says which), so weekends and holidays return the working day before. A currency with no rate that day is left out of rates and listed in not_served. These are reference rates for information, not tradable quotes: no bid, ask or intraday value. Name the ECB and the reference day when you quote one.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"base": "USD",
"quotes": "EUR,GBP,JPY"
},
"name": "fx_rates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | ISO 4217 code of the base currency; default USD. | |
| date | No | Latest reference day on or before this date; default today (YYYY-MM-DD). | |
| quotes | No | Comma-separated ISO 4217 codes to quote, for example EUR,GBP,JPY; default every currency published that day. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | { base, date, requested_date, rates { <currency>: units of it for one unit of base }, not_served: [currency], source { id, name, url, attribution, licence }, method (ecb_reference_rate | cross_rate_through_eur), retrieved_at, as_of_note } | |
| meta | No | Request metadata: request_id, as_of, company resolution, coverage, pipeline_version, licence, terms, proof_base. | |
| error | No | Present only on isError results: the API error code and message plus remedy hints. |