fx
Foreign exchange rates from the European Central Bank for about 30 major currencies (USD, EUR, GBP, JPY, CHF, SEK, CAD, AUD, CNY, INR, BRL and more). Give a base currency, optionally the target currencies and an amount, and get the rates, the converted amounts and the date the rates apply to. Use for currency conversion, invoice and price calculations, and reporting in another currency. Costs $0.002 in USDC on Base per successful call, paid with x402.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Optional comma-separated target currency codes, e.g. EUR,GBP; default is all available currencies | |
| from | Yes | Base currency as a three-letter ISO 4217 code, e.g. USD | |
| amount | No | Optional amount of the base currency to convert (default 1) |