Official exchange rate on a date
official_rateOfficial exchange rate of a named publisher on a date, with a proof link: central banks (ECB, Fed H.10, Bank of Canada, central bank of the currency's own country), tax and customs rates (IRS yearly average, HMRC monthly and yearly, SUNAT, Korea customs), U.S. Treasury, UN. How many quote for 1 base. source picks the publisher (list_sources shows them; default ecb). period YYYY or YYYY-MM instead of date selects a yearly or monthly average. Several currencies: quote as EUR,GBP,JPY.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"base": "<base>",
"quote": "<quote>"
},
"name": "official_rate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | ISO 4217 code, e.g. USD | |
| date | No | YYYY-MM-DD | |
| quote | Yes | ISO 4217 code, or up to 30 codes separated by commas | |
| period | No | YYYY or YYYY-MM (averages; instead of date) | |
| source | No | Publisher table code, e.g. ecb, irs-yearly, hmrc-monthly, cbr, sunat |