Get FX rate
get_fx_rateConvert between two currencies at the published reference rate, including the change from the previous session. Returns the rate and, if an amount is given, the converted total.
Instructions
Convert between two currencies at the latest published reference rate, with the change since the prior session. Returns both the rate and, when amount is given, the converted total. Major currencies come from the European Central Bank (published once per business day, so the rate is a daily fix rather than a live tick); pairs outside the ECB's ~30 currencies fall back to Yahoo. Use get_crypto_price for crypto — BTC and ETH are not currencies here. These are indicative mid-market rates, not dealable quotes, so they will not match what a bank charges.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Quote currency code, e.g. INR | |
| from | Yes | Base currency code, e.g. USD | |
| amount | No | Amount of the base currency to convert |