Vanguard ETFs
Screen the Vanguard US ETF lineup and query current fund holdings, distributions and daily NAV and price history
- Connector software
- Free and open source
- Service credentials
- Not needed
- Query Farm hosting
- Available Β· $10/month organization minimum
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/etf-vanguard/index.md to help me query Vanguard ETFs 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.
cheapest_etfs
Example output Β· captured
- Connector release
- v0.5.0
- Engine
- 2.0.1
- VGI protocol
- 3.4.0
SELECT ticker, long_name, expense_ratio_percent
FROM vanguard.main.products
ORDER BY expense_ratio_percent
LIMIT 5;
| ticker | long_name | expense_ratio_percent |
|---|---|---|
| VGSH | Vanguard Short-Term Treasury ETF | 0.03 |
| BSV | Vanguard Short-Term Bond ETF | 0.03 |
| VCSH | Vanguard Short-Term Corporate Bond ETF | 0.03 |
| BIV | Vanguard Intermediate-Term Bond ETF | 0.03 |
| VCIT | Vanguard Intermediate-Term Corporate Bond ETF | 0.03 |
Quick start
Choose where to run Vanguard ETFs, 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.
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;
INSTALL vgi FROM community;
LOAD vgi;
2. Attach the connector
Attach the release directly
Downloads the latest release for your platform and caches it locally.
ATTACH 'vanguard' AS vanguard (
TYPE vgi,
LOCATION 'github-auto://Query-farm/vgi-etf-vanguard'
);
Attach the signed image
Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.
ATTACH 'vanguard' AS vanguard (
TYPE vgi,
LOCATION 'oci://ghcr.io/query-farm/vgi-etf-vanguard:0.5.0'
);
3. Run a query
SELECT ticker, long_name, expense_ratio_percent
FROM vanguard.main.products
ORDER BY expense_ratio_percent
LIMIT 5;
Run the connector on a server you manage. You operate the service and choose who can connect.
1. Deploy the connector on your server
Follow the connectorβs deployment instructions. Use its supported HTTP transport, or launch it remotely over SSH. The connection guide explains both options.
2. Install the vgi extension
Run this in your SQL client. On DuckDB, keep FROM query_farm on LOAD in later sessions.
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;
INSTALL vgi FROM community;
LOAD vgi;
3. Attach the connector
For an HTTP deployment, replace the example URL with your endpoint. Add the authentication options your deployment requires. For SSH, use the SSH connection instructions.
ATTACH 'vanguard' AS vanguard
(TYPE vgi, LOCATION 'https://your-connector.example.com');
4. Run a query
SELECT ticker, long_name, expense_ratio_percent
FROM vanguard.main.products
ORDER BY expense_ratio_percent
LIMIT 5;
Query Farm operates Vanguard ETFs for your team. Hosting has a $10 monthly minimum per organization; usage counts toward it. From $2.97 per instance-month ($10 monthly minimum).
1. Create your hosted connector
Open the console, choose your organization and deployment size, and add any service credentials there.
2. Install the vgi extension
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;
INSTALL vgi FROM community;
LOAD vgi;
3. Attach your deployment
Copy the ATTACH statement from your deployment in the console and run it in DuckDB or Haybarn. Use vanguard as the catalog alias for the query below.
4. Run a query
SELECT ticker, long_name, expense_ratio_percent
FROM vanguard.main.products
ORDER BY expense_ratio_percent
LIMIT 5;
Technical details
- Verified connector release
- v0.5.0
- Engine
- 2.0.1
- VGI protocol
- 3.4.0
- Verified on
- December 1, 2026
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 the release directly
Uses the verified release each time you attach the connector.
ATTACH 'vanguard' AS vanguard (
TYPE vgi,
LOCATION 'github-auto://Query-farm/[email protected]'
);
Attach the signed image
Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.
ATTACH 'vanguard' AS vanguard (
TYPE vgi,
LOCATION 'oci://ghcr.io/query-farm/vgi-etf-vanguard:0.5.0'
);
Overview
Vanguard US ETF data from Vanguard's public product feed: screen the lineup on fund facts, inspect what a fund currently holds, and pull per-fund distribution and NAV/price history β vgi-etf-vanguard
Vanguard ETFs
Vanguard US ETF data, exposed as DuckDB tables and table functions.
The fund is the unit of the data and is keyed by an exchange ticker (e.g. VOO) β begin at the catalog to discover that key, then drill into a fund. Fund holdings are current-only: Vanguard reports a single as-of date per fund, so there is no historical time travel (unlike some other providers).
Sources
- Vanguard ETF list β the US ETF lineup the catalog is read from.
- Example fund profile (VOO) β a fund page with the holdings, distributions and price history exposed here.
Data is provided for informational use; review Vanguard's terms before redistribution.
Catalog
Everything vanguard exposes once attached β read straight from the worker's
released build.
main 2 tables Β· 4 functions
Vanguard fund data: ETF catalog, detailed current holdings, and per-fund history.
Schema examples (7)
Cheapest Vanguard ETFs by expense ratio
SELECT ticker, long_name, expense_ratio_percent
FROM vanguard.main.products
ORDER BY expense_ratio_percent
LIMIT 10;
Top holdings of VOO
SELECT ticker, name, weight_percent
FROM vanguard.main.holdings
WHERE fund_ticker = 'VOO'
ORDER BY weight_percent DESC
LIMIT 10;
Recent NAV history for VOO
SELECT as_of_date, nav
FROM vanguard.main.nav_history('VOO', period := '1Y')
ORDER BY as_of_date DESC;
NVIDIA's portfolio weight in four Vanguard equity ETFs alongside each fund's name and expense ratio (holdings joined to products); a fund that doesn't hold it (the value fund VTV) drops out
SELECT h.fund_ticker, p.long_name, p.expense_ratio_percent, h.holding_rank,
h.weight_percent
FROM vanguard.main.holdings h
JOIN vanguard.main.products p ON p.ticker = h.fund_ticker
WHERE h.fund_ticker IN ('VOO', 'VTI', 'VUG', 'VTV') AND h.ticker = 'NVDA'
ORDER BY h.weight_percent DESC;
3 more examples
Portfolio overlap between VOO and VUG: how many constituents they share and the overlapping weight (the sum, over shared stocks, of the smaller of the two funds' weights)
SELECT count(*) AS shared_holdings,
round(sum(least(a.weight_percent, b.weight_percent)), 2) AS overlap_percent
FROM vanguard.main.holdings a
JOIN vanguard.main.holdings b ON a.ticker = b.ticker
WHERE a.fund_ticker = 'VOO' AND b.fund_ticker = 'VUG' AND a.ticker <> '';
BND's trailing-12-month distribution yield (per-share distributions over the past year divided by the current price from products) next to its published SEC yield
SELECT p.ticker, p.price, p.yield_percent AS sec_yield_percent,
count(*) AS payouts, round(sum(d.per_share_amount), 4) AS paid_per_share,
round(100 * sum(d.per_share_amount) / p.price, 2) AS trailing_12m_yield_percent
FROM vanguard.main.distributions('BND', start_date := (CURRENT_DATE - INTERVAL 1 YEAR)::DATE) d
CROSS JOIN vanguard.main.products p
WHERE p.ticker = 'BND'
GROUP BY p.ticker, p.price, p.yield_percent
ORDER BY p.ticker;
VOO's approximate 1-year total return: the NAV change over the past year plus the distributions paid in the same window (payouts not reinvested)
WITH nav AS (SELECT arg_min(nav, as_of_date) AS start_nav, arg_max(nav, as_of_date) AS end_nav FROM vanguard.main.nav_history('VOO', period := '1Y')), paid AS (SELECT sum(per_share_amount) AS per_share FROM vanguard.main.distributions('VOO', start_date := (CURRENT_DATE - INTERVAL 1 YEAR)::DATE)) SELECT nav.start_nav, nav.end_nav, round(paid.per_share, 4) AS distributions_per_share, round(100 * (nav.end_nav / nav.start_nav - 1), 2) AS nav_return_percent, round(100 * ((nav.end_nav + paid.per_share) / nav.start_nav - 1), 2) AS total_return_percent
FROM nav
CROSS JOIN paid
ORDER BY total_return_percent;
holdings
Detailed current fund holdings, hive-partitioned by fund_ticker (filter WHERE fund_ticker = β¦ for one fund, or scan unfiltered for all). Current-only β no time travel; as_of_date reflects Vanguard's reported date.
Top 10 current holdings of VOO
SELECT ticker, name, weight_percent
FROM vanguard.main.holdings
WHERE fund_ticker = 'VOO'
ORDER BY weight_percent DESC
LIMIT 10;
NVIDIA's portfolio weight in four Vanguard equity ETFs alongside each fund's name and expense ratio (holdings joined to products); a fund that doesn't hold it (the value fund VTV) drops out
SELECT h.fund_ticker, p.long_name, p.expense_ratio_percent, h.holding_rank,
h.weight_percent
FROM vanguard.main.holdings h
JOIN vanguard.main.products p ON p.ticker = h.fund_ticker
WHERE h.fund_ticker IN ('VOO', 'VTI', 'VUG', 'VTV') AND h.ticker = 'NVDA'
ORDER BY h.weight_percent DESC;
Portfolio overlap between VOO and VUG: how many constituents they share and the overlapping weight (the sum, over shared stocks, of the smaller of the two funds' weights)
SELECT count(*) AS shared_holdings,
round(sum(least(a.weight_percent, b.weight_percent)), 2) AS overlap_percent
FROM vanguard.main.holdings a
JOIN vanguard.main.holdings b ON a.ticker = b.ticker
WHERE a.fund_ticker = 'VOO' AND b.fund_ticker = 'VUG' AND a.ticker <> '';
2 more examples
Two funds at once (partition fan-out)
SELECT fund_ticker, ticker, weight_percent
FROM vanguard.main.holdings
WHERE fund_ticker IN ('VOO', 'VTI');
A bond fund also fills coupon / maturity / face
SELECT name, coupon_percent, maturity, weight_percent
FROM vanguard.main.holdings
WHERE fund_ticker = 'BND'
LIMIT 5;
products
Every Vanguard US ETF with its key facts, one row per fund. Query directly (no arguments) and filter with WHERE; percent columns are in percent points.
Cheapest Vanguard ETFs by expense ratio
SELECT ticker, long_name, expense_ratio_percent
FROM vanguard.main.products
ORDER BY expense_ratio_percent
LIMIT 10;
Bond ETFs with their 1-year return
SELECT ticker, long_name, return_1y_percent
FROM vanguard.main.products
WHERE asset_class = 'Fixed Income'
ORDER BY return_1y_percent DESC;
Look up a single fund by ticker
SELECT ticker, long_name, expense_ratio_percent
FROM vanguard.main.products
WHERE ticker = 'VOO';
distributions (fund VARCHAR, end_date := DATE, start_date := DATE)
Recent distribution history for a fund β one row per distribution with record, reinvestment, and payable dates, the distribution type, the per-share amount, and the reinvestment price. fund is a ticker; bound the record-date range with start_date/end_date.
Recent VOO distributions
SELECT record_date, per_share_amount
FROM vanguard.main.distributions('VOO')
ORDER BY record_date DESC
LIMIT 8;
Total distributions over the trailing year
SELECT sum(per_share_amount) AS total
FROM vanguard.main.distributions('VOO', start_date := (CURRENT_DATE - INTERVAL 1 YEAR)::DATE);
BND's trailing-12-month distribution yield (per-share distributions over the past year divided by the current price from products) next to its published SEC yield
SELECT p.ticker, p.price, p.yield_percent AS sec_yield_percent,
count(*) AS payouts, round(sum(d.per_share_amount), 4) AS paid_per_share,
round(100 * sum(d.per_share_amount) / p.price, 2) AS trailing_12m_yield_percent
FROM vanguard.main.distributions('BND', start_date := (CURRENT_DATE - INTERVAL 1 YEAR)::DATE) d
CROSS JOIN vanguard.main.products p
WHERE p.ticker = 'BND'
GROUP BY p.ticker, p.price, p.yield_percent
ORDER BY p.ticker;
1 more example
Distributions within a bounded record-day window
SELECT record_date, per_share_amount
FROM vanguard.main.distributions('VOO', start_date := (CURRENT_DATE - INTERVAL 1 YEAR)::DATE, end_date := (CURRENT_DATE - INTERVAL 3 MONTH)::DATE)
ORDER BY record_date;
fund_details (fund VARCHAR)
A wide one-row snapshot of a single fund's key facts and characteristics: identifiers, expense ratio, latest price and NAV, premium/discount, yield, 52-week band, annualized returns, primary benchmark and its return, and beta / R-squared / risk level. fund is a ticker like VOO.
Key characteristics for VOO
SELECT ticker, primary_benchmark, beta, expense_ratio_percent
FROM vanguard.main.fund_details('VOO');
Trading quality: premium/discount and 52-week band
SELECT ticker, premium_discount_percent, high_52w_price, low_52w_price
FROM vanguard.main.fund_details('VOO');
1-year fund return vs its benchmark
SELECT return_1y_percent, benchmark_return_1y_percent
FROM vanguard.main.fund_details('VOO');
holdings_scan (fund_ticker := VARCHAR)
Backing scan for the holdings table β prefer the holdings table. Detailed current fund holdings, hive-partitioned by fund_ticker: pass a single fund as holdings_scan(fund_ticker := 'VOO'), or filter WHERE fund_ticker = 'VOO' (or fund_ticker IN (β¦)) for specific funds, or scan with no filter to stream every fund's holdings. weight_percent is in percent points; bond funds also fill coupon/maturity/face.
Top 10 holdings of VOO via the backing scan (fund passed as an argument)
SELECT ticker, name, weight_percent
FROM vanguard.main.holdings_scan(fund_ticker := 'VOO')
ORDER BY weight_percent DESC
LIMIT 10;
Two partitions at once via a pushdown filter (fan-out)
SELECT fund_ticker, count(*)
FROM vanguard.main.holdings_scan()
WHERE fund_ticker IN ('VOO', 'BND')
GROUP BY fund_ticker;
Try these queries
top_holdings β The top holdings of the Vanguard S&P 500 ETF
SELECT ticker, name, weight_percent
FROM vanguard.main.holdings
WHERE fund_ticker = 'VOO'
ORDER BY weight_percent DESC
LIMIT 5;
Uses holdings
Cheapest Vanguard ETFs by expense ratio
SELECT ticker, long_name, expense_ratio_percent
FROM vanguard.main.products
ORDER BY expense_ratio_percent
LIMIT 10
Uses products
Recent NAV history for VOO
SELECT as_of_date, nav
FROM vanguard.main.nav_history('VOO', period := '1Y')
ORDER BY as_of_date DESC
Uses nav_history
BND's trailing-12-month distribution yield (per-share distributions over the past year divided by the current price from products) next to its published SEC yield
SELECT p.ticker, p.price, p.yield_percent AS sec_yield_percent,
count(*) AS payouts, round(sum(d.per_share_amount), 4) AS paid_per_share,
round(100 * sum(d.per_share_amount) / p.price, 2) AS trailing_12m_yield_percent
FROM vanguard.main.distributions('BND', start_date := (CURRENT_DATE - INTERVAL 1 YEAR)::DATE) d
CROSS JOIN vanguard.main.products p
WHERE p.ticker = 'BND'
GROUP BY p.ticker, p.price, p.yield_percent
ORDER BY p.ticker
Key characteristics for VOO
SELECT ticker, primary_benchmark, beta, expense_ratio_percent
FROM vanguard.main.fund_details('VOO')
Uses fund_details
Top 10 holdings of VOO via the backing scan (fund passed as an argument)
SELECT ticker, name, weight_percent
FROM vanguard.main.holdings_scan(fund_ticker := 'VOO')
ORDER BY weight_percent DESC
LIMIT 10
Uses holdings_scan
15 more examples in the Catalog, each listed under the table or function it uses.
Questions it can answer
Plain-English questions from the worker's agent test tasks. An AI agent with this catalog attached should answer each one with SQL.
- Does Vanguard offer an ETF with the ticker VOO, and what is it called?
- What is the single largest holding of the Vanguard S&P 500 ETF (VOO) right now?
- Using the holdings backing scan, list a few VOO constituents by weight.
- What is the expense ratio of the Vanguard S&P 500 ETF (VOO)?
- Which benchmark does the Vanguard S&P 500 ETF (VOO) track, and what is its beta to it?
- What has the Vanguard S&P 500 ETF's (VOO) NAV done over the past year?
Vanguard ETFs 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.
Related workers
Invesco ETFs
Markets & finance
Invesco US ETF facts, holdings, distributions, and NAV history as SQL tables
iShares ETFs
Markets & finance
Screen the iShares US ETF lineup and query point-in-time fund holdings, distributions and daily NAV history
SPDR ETFs
Markets & finance
State Street SPDR ETF facts, current holdings and daily NAV history from the public SSGA feed