Skip to content

Bank of England

Discover Bank of England statistical series and retrieve observations with original periods, units and source metadata

Connector software
Free and open source
Service credentials
Not needed
Use with an agent

Install the Orchard skill in your project to help your agent find connectors, configure them, and verify SQL results.

npx skills add Query-farm/vgi-skills --skill orchard

Copy this request into your coding agent to get started.

Use https://query.farm/products/orchard/connectors/boe/index.md to help me query Bank of England with DuckDB or Haybarn 2.0.1 and VGI protocol 3.4. Ask only for missing details about the result I need or whether I want local execution, self-hosting or Query Farm hosting. Check the connector's actual hosting availability, credentials and input requirements. Read one format of each needed reference and the exact object declarations before writing SQL. Use a released connector, and distinguish a saved example result from anything you actually execute. If you cannot run the query, tell me what remains to verify.

bank_rate_series

Example output · captured
Connector release
v0.2.0
Engine
2.0.1
VGI protocol
3.4.0
SELECT series_code, title
FROM boe.main.datasets(query := 'bank rate')
ORDER BY series_code;
Result
series_code title
IUDBEDR Official Bank Rate

Quick start

Choose where to run Bank of England, then follow the steps below.

The connector runs alongside DuckDB or Haybarn. No Query Farm account is needed.

1. Install the vgi extension

Run this in your SQL client. On DuckDB, keep FROM query_farm on LOAD in later sessions.

setup.sql
SET allow_extension_repositories = 'allowed';

CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
    WITH PREFIX 'https://duckdb-extensions.query.farm';

INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;

2. Attach the connector

Attach with uvx

Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.

ATTACH 'boe' AS boe (
  TYPE vgi,
  LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-boe-worker'
);

3. Run a query

query.sql
SELECT series_code, title
FROM boe.main.datasets(query := 'bank rate')
ORDER BY series_code;
More example queries →
Technical details
Verified connector release
v0.2.0
Engine
2.0.1
VGI protocol
3.4.0
Verified on
December 1, 2026
Release notes on GitHub
Pin a version for production

When running the connector yourself, keep a specific release until you’re ready to upgrade. Replace the ATTACH statement above with this one and follow the same extension and credential setup.

Attach with uvx

Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.

ATTACH 'boe' AS boe (
  TYPE vgi,
  LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-boe-worker'
);

Overview

Bank of England statistics as SQL tables: interest rates, money, credit and other time series from the Bank of England Database, with series metadata and published revision history. No API key needed.

Catalog

Everything boe exposes once attached — read straight from the worker's released build.

boe 1 schema
main 5 functions

Bank of England Database series as table functions: series discovery, metadata and observations.

Schema examples (6)
Examples (6)

Discover BoE series examples

SELECT series_code, title
FROM boe.main.datasets(query := 'rate')
ORDER BY series_code;

Inspect BoE series metadata

SELECT series_code, title, frequency
FROM boe.main.series(['IUDBEDR'], start_date := '2024-01-02', end_date := '2024-01-05')
ORDER BY series_code;

Read BoE observations

SELECT period, value
FROM boe.main.observations(['IUDBEDR'], start_date := '2024-01-02', end_date := '2024-01-05')
ORDER BY period;

Read BoE publication history

SELECT period, published_at, value
FROM boe.main.revisions(['LPMAUZI'], start_date := '2024-01-01', end_date := '2024-03-31', updated_since := '2024-01-01')
ORDER BY period, published_at;
2 more examples

Compare each 2024 month's first-published and current M4 change (LPMAUZI revisions) with that month's average Bank Rate (IUDBEDR observations), showing how much each estimate was revised

WITH m4 AS (SELECT observation_date AS month_end, arg_min(value, published_at) AS first_published, max(value) FILTER (WHERE is_current) AS current_value FROM boe.main.revisions(['LPMAUZI'], start_date := '2024-01-01', end_date := '2024-12-31', updated_since := '2024-01-01') GROUP BY observation_date), rate AS (SELECT date_trunc('month', observation_date) AS month_start, round(avg(value), 3) AS avg_bank_rate FROM boe.main.observations(['IUDBEDR'], start_date := '2024-01-01', end_date := '2024-12-31') GROUP BY ALL) SELECT strftime(m.month_end, '%Y-%m') AS month, r.avg_bank_rate, m.first_published, m.current_value, m.current_value - m.first_published AS total_revision
FROM m4 AS m
JOIN rate AS r ON r.month_start = date_trunc('month', m.month_end)
ORDER BY month;

Discover the BoE series added in September 2024

SELECT series_code, title
FROM boe.main.new_series(start_date := '2024-09-01', end_date := '2024-09-30')
ORDER BY series_code;
Table functions
datasets (max_rows := BIGINT, query := VARCHAR) 1 example

Search a small curated list of official series. This is not the complete BoE catalog; use the linked interactive database for all codes. No network request is made.

Named arguments
max_rows := BIGINT
Output cap after a complete bounded XML response; date and code arguments reduce source work. · default 100000
query := VARCHAR
Case-insensitive local substring of code or title; empty returns all curated examples. · default ""
Returns columns
series_code VARCHAR
Example official series code; discovery is curated, not exhaustive.
title VARCHAR
Short curated description.
frequency VARCHAR
Source frequency code.
source_url VARCHAR
Official documentation and interactive catalog link.
Example

Discover BoE series examples

SELECT series_code, title
FROM boe.main.datasets(query := 'rate')
ORDER BY series_code;
Link
new_series (end_date := VARCHAR, max_rows := BIGINT, start_date := VARCHAR) 1 example

Use the official SeriesCodes=all mode to list series added within the required start_date/end_date window. This discovers additions, not every existing series and not observations. Both dates are named arguments.

Named arguments
end_date := VARCHAR
Inclusive upper calendar bound in YYYY-MM-DD format.
max_rows := BIGINT
Output cap after a complete bounded XML response; date and code arguments reduce source work. · default 100000
start_date := VARCHAR
Inclusive lower calendar bound in YYYY-MM-DD format.
Returns columns
series_code VARCHAR
BoE series identifier.
title VARCHAR
Official series description.
description VARCHAR
Concatenated source category descriptions.
frequency VARCHAR
Source frequency code.
frequency_name VARCHAR
Source frequency label.
unit_descriptor VARCHAR
OUTPUT IN category when provided; consult metadata for scale and conventions.
first_observation VARCHAR
First recorded source period.
last_observation VARCHAR
Last recorded source period.
categories_json VARCHAR
All source categories, codes and labels.
metadata_json VARCHAR
Source metadata hierarchy, including notes and definition links.
Example

Discover the BoE series added in September 2024

SELECT series_code, title
FROM boe.main.new_series(start_date := '2024-09-01', end_date := '2024-09-30')
ORDER BY series_code;
Link
observations (series_codes VARCHAR[], end_date := VARCHAR, include_provisional := BOOLEAN, max_rows := BIGINT, start_date := VARCHAR, updated_since := VARCHAR, updates_only := BOOLEAN) 1 example

Retrieve current observations in published units with exact numeric text, footnotes and publication timestamps. Provisional values occupy separate columns. Source timestamps have no inferred timezone. series_codes is positional; dates and controls are named.

Positional arguments
series_codes VARCHAR[]
One to 300 distinct series codes, for example ['IUDBEDR'].
Named arguments
end_date := VARCHAR
Inclusive upper calendar bound in YYYY-MM-DD format.
include_provisional := BOOLEAN
Request separately reported provisional values. · default false
max_rows := BIGINT
Output cap after a complete bounded XML response; date and code arguments reduce source work. · default 100000
start_date := VARCHAR
Inclusive lower calendar bound in YYYY-MM-DD format.
updated_since := VARCHAR
Revision baseline: YYYY-MM-DD on or after 2007-06-03, latest, or empty for previous-release comparison. · default ""
updates_only := BOOLEAN
Request only observations changed since the selected revision baseline. · default false
Returns columns
series_code VARCHAR
BoE series identifier.
title VARCHAR
Official series description.
description VARCHAR
Concatenated source category descriptions.
frequency VARCHAR
Source frequency code.
frequency_name VARCHAR
Source frequency label.
unit_descriptor VARCHAR
OUTPUT IN category when provided; consult metadata for scale and conventions.
first_observation VARCHAR
First recorded source period.
last_observation VARCHAR
Last recorded source period.
categories_json VARCHAR
All source categories, codes and labels.
metadata_json VARCHAR
Source metadata hierarchy, including notes and definition links.
period VARCHAR
Original observation period.
observation_date DATE
Calendar date assigned by the source to the period.
last_updated VARCHAR
Source publication timestamp; no timezone is inferred.
confidentiality VARCHAR
Original confidentiality flag.
details_json VARCHAR
Observation attributes, footnotes and available revision hierarchy.
value DOUBLE
Official value in original units; NULL when absent.
value_text VARCHAR
Exact original official numeric text.
provisional_value DOUBLE
Separately reported provisional value when requested.
provisional_value_text VARCHAR
Exact provisional numeric text.
Example

Read BoE observations

SELECT period, value
FROM boe.main.observations(['IUDBEDR'], start_date := '2024-01-02', end_date := '2024-01-05')
ORDER BY period;
Link
revisions (series_codes VARCHAR[], end_date := VARCHAR, include_provisional := BOOLEAN, max_rows := BIGINT, start_date := VARCHAR, updated_since := VARCHAR, updates_only := BOOLEAN) 2 examples

Flatten the revision entries returned by the XML service and include the current release once. Set updated_since to a historical baseline to request earlier revisions; empty uses the source's previous-release comparison. Coverage depends on the source and is not a complete ALFRED-style archive. series_codes is positional; dates and controls are named.

Positional arguments
series_codes VARCHAR[]
One to 300 distinct series codes, for example ['IUDBEDR'].
Named arguments
end_date := VARCHAR
Inclusive upper calendar bound in YYYY-MM-DD format.
include_provisional := BOOLEAN
Request separately reported provisional values. · default false
max_rows := BIGINT
Output cap after a complete bounded XML response; date and code arguments reduce source work. · default 100000
start_date := VARCHAR
Inclusive lower calendar bound in YYYY-MM-DD format.
updated_since := VARCHAR
Revision baseline: YYYY-MM-DD on or after 2007-06-03, latest, or empty for previous-release comparison. · default ""
updates_only := BOOLEAN
Request only observations changed since the selected revision baseline. · default false
Returns columns
series_code VARCHAR
BoE series identifier.
title VARCHAR
Official series description.
description VARCHAR
Concatenated source category descriptions.
frequency VARCHAR
Source frequency code.
frequency_name VARCHAR
Source frequency label.
unit_descriptor VARCHAR
OUTPUT IN category when provided; consult metadata for scale and conventions.
first_observation VARCHAR
First recorded source period.
last_observation VARCHAR
Last recorded source period.
categories_json VARCHAR
All source categories, codes and labels.
metadata_json VARCHAR
Source metadata hierarchy, including notes and definition links.
period VARCHAR
Original observation period.
observation_date DATE
Calendar date assigned by the source to the period.
last_updated VARCHAR
Source publication timestamp; no timezone is inferred.
confidentiality VARCHAR
Original confidentiality flag.
details_json VARCHAR
Observation attributes, footnotes and available revision hierarchy.
published_at VARCHAR
Source release timestamp, without an inferred timezone.
value DOUBLE
Published value in original units.
value_text VARCHAR
Exact original published numeric text.
is_current BOOLEAN
Whether the release matches the returned current observation.
is_provisional BOOLEAN
Whether this is a separately provided provisional value.
Examples (2)

Read BoE publication history

SELECT period, published_at, value
FROM boe.main.revisions(['LPMAUZI'], start_date := '2024-01-01', end_date := '2024-03-31', updated_since := '2024-01-01')
ORDER BY period, published_at;

Compare each 2024 month's first-published and current M4 change (LPMAUZI revisions) with that month's average Bank Rate (IUDBEDR observations), showing how much each estimate was revised

WITH m4 AS (SELECT observation_date AS month_end, arg_min(value, published_at) AS first_published, max(value) FILTER (WHERE is_current) AS current_value FROM boe.main.revisions(['LPMAUZI'], start_date := '2024-01-01', end_date := '2024-12-31', updated_since := '2024-01-01') GROUP BY observation_date), rate AS (SELECT date_trunc('month', observation_date) AS month_start, round(avg(value), 3) AS avg_bank_rate FROM boe.main.observations(['IUDBEDR'], start_date := '2024-01-01', end_date := '2024-12-31') GROUP BY ALL) SELECT strftime(m.month_end, '%Y-%m') AS month, r.avg_bank_rate, m.first_published, m.current_value, m.current_value - m.first_published AS total_revision
FROM m4 AS m
JOIN rate AS r ON r.month_start = date_trunc('month', m.month_end)
ORDER BY month;
Link
series (series_codes VARCHAR[], end_date := VARCHAR, include_provisional := BOOLEAN, max_rows := BIGINT, start_date := VARCHAR, updated_since := VARCHAR, updates_only := BOOLEAN) 1 example

Retrieve titles, frequencies, categories, notes and definition links for selected codes within a required date window. Metadata is taken from the same XML download as observations; narrow dates reduce download size. series_codes is positional; dates and controls are named.

Positional arguments
series_codes VARCHAR[]
One to 300 distinct series codes, for example ['IUDBEDR'].
Named arguments
end_date := VARCHAR
Inclusive upper calendar bound in YYYY-MM-DD format.
include_provisional := BOOLEAN
Request separately reported provisional values. · default false
max_rows := BIGINT
Output cap after a complete bounded XML response; date and code arguments reduce source work. · default 100000
start_date := VARCHAR
Inclusive lower calendar bound in YYYY-MM-DD format.
updated_since := VARCHAR
Revision baseline: YYYY-MM-DD on or after 2007-06-03, latest, or empty for previous-release comparison. · default ""
updates_only := BOOLEAN
Request only observations changed since the selected revision baseline. · default false
Returns columns
series_code VARCHAR
BoE series identifier.
title VARCHAR
Official series description.
description VARCHAR
Concatenated source category descriptions.
frequency VARCHAR
Source frequency code.
frequency_name VARCHAR
Source frequency label.
unit_descriptor VARCHAR
OUTPUT IN category when provided; consult metadata for scale and conventions.
first_observation VARCHAR
First recorded source period.
last_observation VARCHAR
Last recorded source period.
categories_json VARCHAR
All source categories, codes and labels.
metadata_json VARCHAR
Source metadata hierarchy, including notes and definition links.
Example

Inspect BoE series metadata

SELECT series_code, title, frequency
FROM boe.main.series(['IUDBEDR'], start_date := '2024-01-02', end_date := '2024-01-05')
ORDER BY series_code;
Link

Try these queries

Discover BoE series examples

SELECT series_code, title
FROM boe.main.datasets(query := 'rate')
ORDER BY series_code

Uses datasets

Inspect BoE series metadata

SELECT series_code, title, frequency
FROM boe.main.series(['IUDBEDR'], start_date := '2024-01-02', end_date := '2024-01-05')
ORDER BY series_code

Uses series

Read BoE observations

SELECT period, value
FROM boe.main.observations(['IUDBEDR'], start_date := '2024-01-02', end_date := '2024-01-05')
ORDER BY period

Uses observations

Read BoE publication history

SELECT period, published_at, value
FROM boe.main.revisions(['LPMAUZI'], start_date := '2024-01-01', end_date := '2024-03-31', updated_since := '2024-01-01')
ORDER BY period, published_at

Uses revisions

Compare each 2024 month's first-published and current M4 change (LPMAUZI revisions) with that month's average Bank Rate (IUDBEDR observations), showing how much each estimate was revised

WITH m4 AS (SELECT observation_date AS month_end, arg_min(value, published_at) AS first_published, max(value) FILTER (WHERE is_current) AS current_value FROM boe.main.revisions(['LPMAUZI'], start_date := '2024-01-01', end_date := '2024-12-31', updated_since := '2024-01-01') GROUP BY observation_date), rate AS (SELECT date_trunc('month', observation_date) AS month_start, round(avg(value), 3) AS avg_bank_rate FROM boe.main.observations(['IUDBEDR'], start_date := '2024-01-01', end_date := '2024-12-31') GROUP BY ALL) SELECT strftime(m.month_end, '%Y-%m') AS month, r.avg_bank_rate, m.first_published, m.current_value, m.current_value - m.first_published AS total_revision
FROM m4 AS m
JOIN rate AS r ON r.month_start = date_trunc('month', m.month_end)
ORDER BY month

Uses revisionsobservations

Discover the BoE series added in September 2024

SELECT series_code, title
FROM boe.main.new_series(start_date := '2024-09-01', end_date := '2024-09-30')
ORDER BY series_code

Uses new_series

Bank of England is an independent open-source connector from Query.Farm. It is not affiliated with, endorsed by or sponsored by the services, projects or organisations it works with. Product names, logos and trademarks belong to their respective owners.