get_fx_rates
utilpeek: foreign-exchange reference rates for a base currency. For live on-chain rates use get_live_fx_rates. Unknown currencies and older dates are a 422 (not charged); an ECB outage is a 5xx (not charged). Typically under 0.1 s (up to 10 s on a refresh). Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. Rates are the European Central Bank (ECB) euro reference rates, available free of charge at ecb.europa.eu; non-EUR bases are cross rates computed by Tanod. For information purposes only, not for transactions (attribution carries the ECB terms). Docs: https://tanod.dev/learn/exchange-rates-api.html
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>"
},
"name": "get_fx_rates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | Base currency (ISO 4217, e.g. USD), or EUR. | |
| date | No | YYYY-MM-DD within the last 90 days (default: latest). | |
| symbols | No | 1-40 ISO 4217 codes to return (default: all ECB currencies). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | ||
| date | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| rates | No | ||
| stale | No | ||
| cached | No | ||
| attribution | No | ||
| requested_date | No |