Convert Currency
convert_currencyConvert an amount between fiat currencies (USD, EUR, GBP) and crypto assets (BTC, ETH, USDC, SOL) and return the converted amount plus the exchange rate used.
Use when: Use when an amount must be expressed in a different currency than the source data — for example converting a USD portfolio value into EUR, or a fiat amount into its crypto equivalent. For prices only, get_token_price returns the rate directly without a second call.
Limitations: Spot-rate conversion at request time; no historical or forward rates, and no slippage or fee modeling. Actual swap execution differs — use get_dex_quote for executable on-chain quotes.
Alternatives: get_token_price, get_dex_quote
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount to convert | |
| to_currency | Yes | Target currency (e.g. 'USD', 'EUR', 'BTC') | |
| from_currency | Yes | Source currency (e.g. 'ETH', 'USD', 'BTC') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | Yes | ||
| amount | Yes | ||
| source | Yes | ||
| to_currency | Yes | ||
| from_currency | Yes | ||
| converted_amount | Yes |