FX Convert
fx_convertConvert an amount from one currency to another using the ECB reference rate, returning the exchange rate, converted result, and rate date.
Instructions
Convert an amount from one currency to another at the latest ECB reference rate. Returns the rate, the converted result, and the rate date.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target 3-letter currency | |
| from | Yes | Source 3-letter currency | |
| amount | Yes | Amount in the 'from' currency to convert. Send it as a number, not a string. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| date | No | ||
| from | No | ||
| rate | No | ||
| amount | No | ||
| result | No | ||
| source | No | ||
| provenance | No | Where this answer came from. served_at is when Datakoot answered (UTC); upstream lists the official sources consulted. Datakoot may serve a briefly cached copy, so the source's own observation can be older than served_at. |