Rate history for a pair
rate_historyRetrieve ECB exchange-rate history for a currency pair across a date window, returning daily rows plus min, max, average, and net change.
Instructions
Call this tool for the ECB rate of one currency pair across a window. Returns one row per published day plus the min, max, average and the change. A window wider than the free 90 days is shortened, not refused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Quote currency of the pair. Each row is 1 from = X to | |
| days | No | Trailing window in calendar days, default 30. Only TARGET business days carry a rate, so 30 days holds about 21 rows. Free reads up to 90 days back; Pro reads the whole series back to 1999-01-04 | |
| from | Yes | Base currency of the pair | |
| to_date | No | ISO date, inclusive, default today | |
| max_rows | No | Cap the table, default 200. min/max/avg still cover the whole window | |
| from_date | No | ISO date, inclusive. Overrides days. Free is limited to the last 90 days |