BoE base rate statistics over a range
get_rate_statsRetrieve key stats for the Bank of England base rate over any date range: min/max with dates, time-weighted average, and net basis-point move. Defaults to full history.
Instructions
Get summary statistics of the Bank of England base rate over a date range: minimum and maximum (with the date each level first applied), the time-weighted average, and the rates in force at the start and end of the window with the net move in basis points. Both dates are optional — omit them for the full available history through today. The rate level in force on the start date counts even if it took effect earlier.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End of the window (inclusive), ISO 8601 (YYYY-MM-DD). Defaults to today; must not be in the future | |
| from | No | Start of the window, ISO 8601 (YYYY-MM-DD). Defaults to the start of the available series |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Effective window end used (today when `to` was omitted) | |
| max | Yes | ||
| min | Yes | ||
| from | Yes | Effective window start used (the first available data point when `from` was omitted or predates the series) | |
| stale | No | Present and true when the BoE was unreachable and this is stale cached data | |
| source | Yes | URL the data was fetched from | |
| average | Yes | Time-weighted average rate in percent: each level weighted by the number of calendar days it was in force within the window (not a plain mean of the sparse change points), rounded to 4 decimal places | |
| endRate | Yes | Rate in percent in force on the window end date | |
| cachedAt | Yes | When the data was fetched (ISO 8601 timestamp) | |
| changeBps | Yes | Net move over the window: endRate minus startRate, in basis points | |
| startRate | Yes | Rate in percent in force on the window start date |