Exchange rates (USD base)
get_ratesReturn the full USD-based exchange-rate snapshot for one date: rates maps every supported currency to units per 1 USD. Use when the user wants a multi-currency table in USD (for example "today's rates"). Use get_rates_by_base for a non-USD base, 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: "USD", date, rates }; a date with no snapshot is a 404. Requires a signed-in connection; each successful call bills 1 API request.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_rates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | YYYY-MM-DD. Defaults to the latest available date. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | No | ||
| base | Yes | ||
| date | Yes | ||
| rates | Yes | ||
| requestedDate | No |