Schwab ETFs
Schwab ETF lineup key facts and current fund holdings as SQL tables
- Connector software
- Free and open source
- Service credentials
- Not needed
- Query Farm hosting
- Not available yet
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-schwab/index.md to help me query Schwab 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.
Top holdings of SCHD
Example output · captured
- Connector release
- v0.5.0
- Engine
- 2.0.1
- VGI protocol
- 3.4.0
SELECT name, ticker, weight_percent
FROM schwab.main.holdings
WHERE fund_ticker = 'SCHD'
ORDER BY weight_percent DESC
LIMIT 10
| name | ticker | weight_percent |
|---|---|---|
| PROCTER & GAMBLE | PG | 4.58 |
| HOME DEPOT | HD | 4.45 |
| TEXAS INSTRUMENT | TXN | 4.33 |
| COCA-COLA | KO | 4.32 |
| AMGEN INC | AMGN | 4.19 |
Quick start
Choose where to run Schwab 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 with uvx
Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.
ATTACH 'schwab' AS schwab (
TYPE vgi,
LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-etf-schwab-worker'
);
Attach the signed image
Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.
ATTACH 'schwab' AS schwab (
TYPE vgi,
LOCATION 'oci://ghcr.io/query-farm/vgi-etf-schwab:0.5.0'
);
3. Run a query
SELECT name, ticker, weight_percent
FROM schwab.main.holdings
WHERE fund_ticker = 'SCHD'
ORDER BY weight_percent DESC
LIMIT 10
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 'schwab' AS schwab
(TYPE vgi, LOCATION 'https://your-connector.example.com');
4. Run a query
SELECT name, ticker, weight_percent
FROM schwab.main.holdings
WHERE fund_ticker = 'SCHD'
ORDER BY weight_percent DESC
LIMIT 10
Query Farm hosting is not available for Schwab ETFs yet. Choose “On your machine” or “Self-host” to run it yourself, or talk to us about hosting.
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 with uvx
Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.
ATTACH 'schwab' AS schwab (
TYPE vgi,
LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-etf-schwab-worker'
);
Attach the signed image
Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.
ATTACH 'schwab' AS schwab (
TYPE vgi,
LOCATION 'oci://ghcr.io/query-farm/vgi-etf-schwab:0.5.0'
);
Overview
Schwab Asset Management US ETF data as DuckDB tables: products (catalog) & holdings (ticker-partitioned, current holdings) — vgi-etf-schwab
Schwab Asset Management ETFs
Schwab Asset Management US ETF data, exposed as DuckDB tables.
The fund is the unit of the data and is keyed by an exchange ticker (e.g. SCHD) — begin at the catalog to discover that key, then drill into a fund's holdings. Holdings are the current published portfolio (Schwab does not publish historical holdings).
Sources
- Schwab Asset Management ETFs — the Schwab ETF lineup.
- Example fund page (SCHD) — a fund page with the fund facts and holdings exposed here.
Data is provided for informational use; review Schwab's terms before redistribution.
Catalog
Everything schwab exposes once attached — read straight from the worker's
released build.
main 2 tables · 1 function
Schwab fund data: the ETF catalog and detailed current holdings.
Schema examples (5)
Ten largest Schwab ETFs by net assets
SELECT ticker, fund_name, net_assets
FROM schwab.main.products
ORDER BY net_assets DESC
LIMIT 10;
Top holdings of SCHD
SELECT name, ticker, weight_percent
FROM schwab.main.holdings
WHERE fund_ticker = 'SCHD'
ORDER BY weight_percent DESC
LIMIT 10;
| name | ticker | weight_percent |
|---|---|---|
| PROCTER & GAMBLE | PG | 4.58 |
| HOME DEPOT | HD | 4.45 |
| TEXAS INSTRUMENT | TXN | 4.33 |
| COCA-COLA | KO | 4.32 |
| AMGEN INC | AMGN | 4.19 |
Concentration vs cost: the share of each large-cap fund's assets in its 10 largest positions, beside its position count and expense ratio from the catalog
WITH ranked AS (SELECT fund_ticker, weight_percent, row_number() OVER (PARTITION BY fund_ticker ORDER BY weight_percent DESC) AS rn FROM schwab.main.holdings WHERE fund_ticker IN ('SCHD', 'SCHG', 'SCHV', 'SCHX')) SELECT p.ticker, p.fund_name, p.expense_ratio_percent, count(*) AS num_positions, round(sum(r.weight_percent) FILTER (WHERE r.rn <= 10), 2) AS top10_weight_percent
FROM ranked r
JOIN schwab.main.products p ON p.ticker = r.fund_ticker
GROUP BY ALL
ORDER BY top10_weight_percent DESC;
Fund overlap: how many of the growth ETF SCHG's positions the broad large-cap ETF SCHX also holds, and the overlapping weight (sum of the smaller of the two weights per shared CUSIP)
SELECT count(*) AS shared_positions,
round(sum(least(g.weight_percent, x.weight_percent)), 2) AS overlap_weight_percent
FROM schwab.main.holdings g
JOIN schwab.main.holdings x ON g.cusip = x.cusip
WHERE g.fund_ticker = 'SCHG' AND x.fund_ticker = 'SCHX' AND g.cusip <> '';
1 more example
Look-through exposure: the 10 stocks SCHD, SCHG, SCHV and SCHX together hold the most dollars of, estimated as each fund's net assets times the holding's weight
SELECT h.ticker, any_value(h.name) AS name, count(*) AS funds,
round(sum(p.net_assets * h.weight_percent / 100) / 1e9, 2) AS est_value_usd_bn
FROM schwab.main.holdings h
JOIN schwab.main.products p ON p.ticker = h.fund_ticker
WHERE h.fund_ticker IN ('SCHD', 'SCHG', 'SCHV', 'SCHX') AND h.ticker <> ''
GROUP BY h.ticker
ORDER BY est_value_usd_bn DESC
LIMIT 10;
holdings
Detailed current fund holdings, hive-partitioned by fund_ticker (filter WHERE fund_ticker = … for one fund, or scan unfiltered for all). Schwab publishes current holdings only (no historical dates).
Top 10 current holdings of SCHD
SELECT name, ticker, weight_percent
FROM schwab.main.holdings
WHERE fund_ticker = 'SCHD'
ORDER BY weight_percent DESC
LIMIT 10;
| name | ticker | weight_percent |
|---|---|---|
| PROCTER & GAMBLE | PG | 4.58 |
| HOME DEPOT | HD | 4.45 |
| TEXAS INSTRUMENT | TXN | 4.33 |
| COCA-COLA | KO | 4.32 |
| AMGEN INC | AMGN | 4.19 |
Concentration vs cost: the share of each large-cap fund's assets in its 10 largest positions, beside its position count and expense ratio from the catalog
WITH ranked AS (SELECT fund_ticker, weight_percent, row_number() OVER (PARTITION BY fund_ticker ORDER BY weight_percent DESC) AS rn FROM schwab.main.holdings WHERE fund_ticker IN ('SCHD', 'SCHG', 'SCHV', 'SCHX')) SELECT p.ticker, p.fund_name, p.expense_ratio_percent, count(*) AS num_positions, round(sum(r.weight_percent) FILTER (WHERE r.rn <= 10), 2) AS top10_weight_percent
FROM ranked r
JOIN schwab.main.products p ON p.ticker = r.fund_ticker
GROUP BY ALL
ORDER BY top10_weight_percent DESC;
Fund overlap: how many of the growth ETF SCHG's positions the broad large-cap ETF SCHX also holds, and the overlapping weight (sum of the smaller of the two weights per shared CUSIP)
SELECT count(*) AS shared_positions,
round(sum(least(g.weight_percent, x.weight_percent)), 2) AS overlap_weight_percent
FROM schwab.main.holdings g
JOIN schwab.main.holdings x ON g.cusip = x.cusip
WHERE g.fund_ticker = 'SCHG' AND x.fund_ticker = 'SCHX' AND g.cusip <> '';
4 more examples
Look-through exposure: the 10 stocks SCHD, SCHG, SCHV and SCHX together hold the most dollars of, estimated as each fund's net assets times the holding's weight
SELECT h.ticker, any_value(h.name) AS name, count(*) AS funds,
round(sum(p.net_assets * h.weight_percent / 100) / 1e9, 2) AS est_value_usd_bn
FROM schwab.main.holdings h
JOIN schwab.main.products p ON p.ticker = h.fund_ticker
WHERE h.fund_ticker IN ('SCHD', 'SCHG', 'SCHV', 'SCHX') AND h.ticker <> ''
GROUP BY h.ticker
ORDER BY est_value_usd_bn DESC
LIMIT 10;
The largest positions of the International Equity ETF
SELECT name, weight_percent, market_value
FROM schwab.main.holdings
WHERE fund_ticker = 'SCHF'
ORDER BY weight_percent DESC
LIMIT 10;
Two funds at once (partition fan-out)
SELECT fund_ticker, name, weight_percent
FROM schwab.main.holdings
WHERE fund_ticker IN ('SCHD', 'SCHF');
Join holdings to the catalog for fund-level facts (name + expense ratio)
SELECT p.fund_name, p.expense_ratio_percent, h.name, h.weight_percent
FROM schwab.main.holdings h
JOIN schwab.main.products p ON h.fund_ticker = p.ticker
WHERE h.fund_ticker = 'SCHD'
ORDER BY h.weight_percent DESC
LIMIT 10;
products
Every Schwab US ETF with its key facts, one row per fund. Query directly (no arguments) and filter with WHERE; percent columns are in percent points.
Ten largest Schwab ETFs by net assets
SELECT ticker, fund_name, net_assets
FROM schwab.main.products
ORDER BY net_assets DESC
LIMIT 10;
Cheapest funds by expense ratio
SELECT ticker, fund_name, expense_ratio_percent
FROM schwab.main.products
ORDER BY expense_ratio_percent
LIMIT 10;
Look up a single fund by ticker
SELECT ticker, fund_name, expense_ratio_percent
FROM schwab.main.products
WHERE ticker = 'SCHD';
holdings_scan (fund_ticker := VARCHAR)
Backing scan for the holdings table — prefer the holdings table. Detailed fund holdings, hive-partitioned by fund_ticker. Pass a fund's ticker as the fund_ticker argument (holdings_scan(fund_ticker => 'SCHD')) for one fund, or omit it and filter WHERE fund_ticker = 'SCHD' (or IN (…)) so the filter is pushed down; with neither it streams every fund. weight_percent is in percent points; Schwab publishes current holdings only.
Top 10 holdings of SCHD, passing the fund ticker as the argument
SELECT name, weight_percent
FROM schwab.main.holdings_scan(fund_ticker => 'SCHD')
ORDER BY weight_percent DESC
LIMIT 10;
Same, via a pushed-down fund_ticker filter (no argument)
SELECT name, weight_percent
FROM schwab.main.holdings_scan()
WHERE fund_ticker = 'SCHD'
ORDER BY weight_percent DESC
LIMIT 10;
Two partitions at once (fan-out)
SELECT fund_ticker, count(*)
FROM schwab.main.holdings_scan()
WHERE fund_ticker IN ('SCHD', 'SCHF')
GROUP BY fund_ticker;
Try these queries
largest_etfs — The largest Schwab ETFs by net assets
SELECT ticker, fund_name, net_assets
FROM schwab.main.products
ORDER BY net_assets DESC
LIMIT 5;
Uses products
top_holdings — The top holdings of the Schwab U.S. Dividend Equity ETF
SELECT name, ticker, weight_percent
FROM schwab.main.holdings
WHERE fund_ticker = 'SCHD'
ORDER BY weight_percent DESC
LIMIT 5;
Uses holdings
Ten largest Schwab ETFs by net assets
SELECT ticker, fund_name, net_assets
FROM schwab.main.products
ORDER BY net_assets DESC
LIMIT 10
Uses products
Concentration vs cost: the share of each large-cap fund's assets in its 10 largest positions, beside its position count and expense ratio from the catalog
WITH ranked AS (SELECT fund_ticker, weight_percent, row_number() OVER (PARTITION BY fund_ticker ORDER BY weight_percent DESC) AS rn FROM schwab.main.holdings WHERE fund_ticker IN ('SCHD', 'SCHG', 'SCHV', 'SCHX')) SELECT p.ticker, p.fund_name, p.expense_ratio_percent, count(*) AS num_positions, round(sum(r.weight_percent) FILTER (WHERE r.rn <= 10), 2) AS top10_weight_percent
FROM ranked r
JOIN schwab.main.products p ON p.ticker = r.fund_ticker
GROUP BY ALL
ORDER BY top10_weight_percent DESC
Fund overlap: how many of the growth ETF SCHG's positions the broad large-cap ETF SCHX also holds, and the overlapping weight (sum of the smaller of the two weights per shared CUSIP)
SELECT count(*) AS shared_positions,
round(sum(least(g.weight_percent, x.weight_percent)), 2) AS overlap_weight_percent
FROM schwab.main.holdings g
JOIN schwab.main.holdings x ON g.cusip = x.cusip
WHERE g.fund_ticker = 'SCHG' AND x.fund_ticker = 'SCHX' AND g.cusip <> ''
Uses holdings
Top 10 holdings of SCHD, passing the fund ticker as the argument
SELECT name, weight_percent
FROM schwab.main.holdings_scan(fund_ticker => 'SCHD')
ORDER BY weight_percent DESC
LIMIT 10
Uses holdings_scan
8 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 Schwab offer an ETF with the ticker SCHD, and what is it called?
- What is the expense ratio of the Schwab U.S. Dividend Equity ETF (SCHD)?
- What is the single largest holding of the Schwab U.S. Dividend Equity ETF (SCHD) right now?
- Using the holdings backing scan with the fund ticker passed as its argument, list a few SCHD constituents by weight.
Schwab 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