Convert currencies with official reference rates
fx_convertConvert an amount between currencies using official ECB daily reference rates or World Bank annual averages, with the method and citations stated.
Instructions
Convert an amount between currencies using ECB daily reference rates (~30 majors, any date since 1999) or, for ~90 other currencies (BBD, XCD, JMD, KES, …), official annual-average rates from the World Bank. With the method and citations stated explicitly. Pass date='YYYY-MM-DD' for daily or 'YYYY' for annual-average conversion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | 3-letter ISO code, e.g. 'BBD'. | |
| date | No | 'YYYY-MM-DD' (daily, ECB set) or 'YYYY' (annual average). Default: latest. | |
| from | Yes | 3-letter ISO code, e.g. 'USD'. | |
| amount | Yes |