Get a bank's daily rate history
get_bank_rate_historyRetrieve daily buy and sell exchange rate history for a single bank and currency over a date range, defaulting to the past year.
Instructions
Daily buy and sell history for one bank and currency between two dates (defaults to the last year). Needs a paid plan; on the free plan use get_bank_rates with date for a single past day.
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": {
"country": "<country>",
"bank": "<bank>",
"ccy": "<ccy>"
},
"name": "get_bank_rate_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Date as YYYY-MM-DD. | |
| ccy | Yes | Foreign currency, ISO 4217, e.g. 'USD', 'EUR', 'GBP'. Prices are in the country's home currency per 1 unit. | |
| bank | Yes | Bank code inside the country, e.g. 'sbi', 'hdfc', 'dbs', 'enbd', 'bofa'. Use find_banks if unsure. | |
| from | No | Date as YYYY-MM-DD. | |
| country | Yes | Two-letter country code (ISO 3166), e.g. 'in', 'sg', 'ae', 'gb', 'us'. See list_bank_countries. |