Crypto Get Exchange Rate
crypto_get_exchange_rateConvert between fiat currencies (e.g., USD to EUR). Returns conversion rate and timestamp.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"to": "EUR",
"from": "USD"
},
"name": "crypto_get_exchange_rate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target currency code (e.g., EUR, JPY, GBP) | |
| from | Yes | Source currency code (e.g., USD, EUR, GBP) | |
| amount | No | Amount to convert (default: 1) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target currency code (uppercase) | |
| from | Yes | Source currency code (uppercase) | |
| rate | Yes | Exchange rate from source to target | |
| amount | Yes | Amount to convert | |
| converted | Yes | Converted amount (rounded to 2 decimals) | |
| last_updated | Yes | Last update timestamp (UTC) |