Get a bank's buy and sell rates
get_bank_ratesRetrieve live buy and sell exchange rates from a selected commercial bank for one currency or its full board, including optional historical dates and official-rate comparison.
Instructions
Live buy and sell exchange rates that one commercial bank shows on its own website, e.g. 'SBI TT buying rate for USD', 'DBS SGD rates', 'Emirates NBD INR rate today'. Give ccy for one currency (buy, sell, spread_pct and the central bank's official rate), or omit it for the bank's whole board. date returns the stored board for a past day (about 400 days kept). Prices are home currency per 1 unit of foreign currency. Retail prices, not official rates. Needs an API key (the free key works).
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>"
},
"name": "get_bank_rates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ccy | No | 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. | |
| date | 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. |