Exchange rates by base currency
get_rates_by_baseReturn the daily FX snapshot re-based to base: every supported currency quoted as units per 1 unit of base, with base itself at 1. Use when the user wants a multi-currency table in a non-USD base (for example "rates in EUR"). Use get_rates for the USD table, convert for one pair or amount, and get_history for a time series. Omitting date returns the latest available snapshot, which is not necessarily today. Returns { base, date, rates }; an unsupported base or a date with no snapshot is a 404. Requires a signed-in connection; each successful call bills 1 API request.
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": {
"base": "<base>"
},
"name": "get_rates_by_base"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | Base currency (3-letter ISO 4217), e.g. EUR. | |
| date | No | YYYY-MM-DD. Defaults to the latest available date. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ppp | No | ||
| asOf | No | ||
| base | Yes | ||
| date | Yes | ||
| rates | Yes | ||
| requestedDate | No |