Exchange Rate
ExchangeRateExchange Rate: Exchange Rate looks up the conversion rate between two currency codes across 170+ currencies, with both currency names and the last-updated time. Paid plans add the inverse rate, the pair's 1-day to 1-year change, its 30-day high, low, average and volatility, past dates, and hourly and 30-day daily history. (Cost: 2 credits)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"currency1": "<currency1>",
"currency2": "<currency2>"
},
"name": "ExchangeRate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Optional past date (YYYY-MM-DD) to use that day's closing rates instead of live rates. History runs from 1999-01-04 for about 30 major currencies and covers every supported currency from March 2024. A day with no rates, such as a weekend or holiday, uses the last close before it. | |
| hourly | No | Include the pair's rate for each of the last 24 hours (live rates only, not with date) | |
| history | No | Include the pair's daily closing rate for the last 30 days | |
| currency1 | Yes | The first currency you want to get the exchange rate for | |
| currency2 | Yes | The second currency you want to get the exchange rate for |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Error message, null on success | |
| status | No | "ok" on success |