ECB rates: every currency on a day, or a window
ratesThe ECB's reference rates as fixings, oldest first, each currency in units per 1 EUR as the ECB published it. With date (default today): every currency's rate in force that day, all from one fixing, whose date the answer gives. With from (and to, default today): every fixing the ECB published in the window, as many as fit in 2000 rates a call (a year of seven currencies, or all of them for about three months). Name currencies to narrow either; leave them out for all. Use it for a chart, an average or a check across several days.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "rates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | A window's last day, included; default today. Only with from. | |
| date | No | One day, YYYY-MM-DD in Frankfurt: the rates in force on it. Not with from. | |
| from | No | A window's first day, YYYY-MM-DD: every fixing from it to `to`. | |
| currencies | No | ISO 4217 codes, e.g. ["USD", "GBP"], without EUR; default every currency the ECB published. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| to | No | ||
| date | No | The day asked for: fixings holds the one in force on it | |
| from | No | ||
| note | No | ||
| count | Yes | How many rates the fixings hold | |
| absent | No | Currencies asked for that the ECB published no rate of in the window | |
| source | Yes | ||
| fixings | Yes | Oldest first; a currency the ECB did not publish on a fixing is missing from that fixing's rates | |
| fixing_date | No | With date: the date of the fixing that was in force |