Latest or historic ECB reference exchange rates with optional amount conversion ($0.003)
get_exchange_ratesRetrieve European Central Bank reference exchange rates for a current or historical date since 1999, with optional base currency, target symbols, and amount conversion.
Instructions
European Central Bank reference rates: latest or any date since 1999-01-04, any base, optional symbols list and amount to convert. About 30 currencies, published once per working day. Returns the publication date actually used. Not charged on bad input, no data for the date, or upstream failure. No API key. Price: $0.003 USDC per call, paid over x402 on Base from the wallet in X402_PRIVATE_KEY (not charged when the call fails).
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": "get_exchange_rates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Base currency code (default USD) | |
| date | No | YYYY-MM-DD, 1999-01-04 or later (default latest) | |
| amount | No | Amount of the base currency to convert | |
| symbols | No | Comma list of target codes, e.g. EUR,JPY (default all) |