ECB currency exchange rates and conversion
fx_ratesECB euro foreign exchange reference rates for about 30 currencies, latest or any date since 1999-01-04: base, rate date, rates for the requested currencies, optional converted amounts, and the unmodified ECB euro rates. Rates for non-EUR bases are cross rates calculated by Kit Rx from the ECB euro rates. Daily rates published for information, not transaction quotes. Source: ECB statistics, via the Frankfurter API; the ECB publishes these rates free of charge on its website. Price: $0.002 per successful call, paid in USDC with x402 v2; failed calls and calls that match nothing are not charged.
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": "fx_rates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | ISO 4217 code of the base currency; must be one the ECB quotes (about 30 current, e.g. USD, EUR, GBP, JPY, CHF, CNY, INR). Default USD. | |
| date | No | Historical rate date, YYYY-MM-DD, 1999-01-04 or later. Weekends and TARGET holidays return the latest earlier ECB rates. Omit for the latest rates. | |
| amount | No | Amount in the base currency to convert into each symbol: a positive number up to 1e12 with an optional decimal point. | |
| symbols | No | Comma-separated ISO 4217 codes to return (up to 50). Omit for every currency the ECB quoted on that date. |