fx_convert_historical
Convert amounts at historical exchange rates (invoice/bookkeeping) — Converts an amount (or one amount per date) between two currencies at the reference rate of each given date - for invoices, expense reports, tax and bookkeeping. Returns per-date rate and converted value (weekends/holidays use the latest earlier rate, rateDate shows which), totals and the effective average rate. Up to 100 dates (max 25 distinct dates when they span more than ~13 months); data back to 1999 for majors. Frankfurter blended reference rates (free for commercial use). Params: from, to (currency codes), dates (YYYY-MM-DD comma list); optional amount (default 1) or amounts (comma list, one per date). Price: $0.002 USDC (Base, via x402).
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": {
"from": "<from>",
"to": "<to>",
"dates": "<dates>"
},
"name": "fx_convert_historical"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | USD | |
| from | Yes | EUR | |
| dates | Yes | 2026-01-15,2026-03-31,2026-06-30 |