Get Historical Rate
get_historical_rateGet the exchange rate between two currencies on a specific date (format: YYYY-MM-DD). Returns the historical rate and date.
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",
"date": "2023-01-15",
"from": "USD"
},
"name": "get_historical_rate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target currency code (e.g., EUR) | |
| date | Yes | Date in YYYY-MM-DD format (earliest available: 1999-01-04) | |
| from | Yes | Source currency code (e.g., USD) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target currency code (uppercase) | |
| date | Yes | Date of the historical rate (YYYY-MM-DD) | |
| from | Yes | Source currency code (uppercase) | |
| rate | Yes | Historical exchange rate |