Currency conversion at the official ECB rate
fx_convertConverts an amount between any two of the ~30 currencies in the European Central Bank's official reference rates, on today's publication or on a past date within the last 90 days. Returns the rate used, its publication date and whether it was crossed through the euro. This is the auditable rate accounting and customs ask for, not a live market quote: it is published once a day and it is reproducible. $0.005 per call, paid over x402 (USDC).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target currency, ISO 4217, e.g. EUR. | |
| date | No | Optional publication date, YYYY-MM-DD, within the last 90 days. Defaults to the latest publication. | |
| from | Yes | Source currency, ISO 4217, e.g. USD. | |
| amount | No | Amount to convert. Defaults to 1. |