Currency exchange rate
exchange_rateConvert between currencies at European Central Bank reference rates (30 currencies), for the latest business day or any day in the last 90. These rates are published free by the ECB at ecb.europa.eu and are for information only, not for transactions.
$0.002 USDC per call over x402. Failed calls cost nothing. Call without payment to get a quote. The first 3 calls a day through this tool server are free (no wallet needed).
When to use: You need to convert between currencies at an official reference rate. Parameters: from and to: 3-letter codes (30 supported). amount: default 1. date: YYYY-MM-DD within the last 90 days; leave out for the latest business day. Returns: the rate, the converted amount and the ECB date used. For information, not for transactions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | 3-letter currency code, e.g. "EUR". | |
| date | No | YYYY-MM-DD within the last 90 days. | |
| from | Yes | 3-letter currency code, e.g. "USD". | |
| amount | No | Amount to convert (default 1). | |
| payment | No | Base64 x402 payment payload. Omit it to receive a quote; sign that and call again. |