iShares ETFs
Screen the iShares US ETF lineup and query point-in-time fund holdings, distributions and daily NAV 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-ishares/index.md to help me query iShares 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.
largest_etfs
Example output Β· captured
- Connector release
- v0.5.0
- Engine
- 2.0.1
- VGI protocol
- 3.4.0
SELECT ticker, fund_name, net_assets
FROM ishares.main.products
ORDER BY net_assets DESC
LIMIT 5;
| ticker | fund_name | net_assets |
|---|---|---|
| IVV | iShares Core S&P 500 ETF | 853,376,580,000 |
| IEFA | iShares Core MSCI EAFE ETF | 185,105,890,000 |
| IEMG | iShares Core MSCI Emerging Markets ETF | 144,046,130,000 |
| AGG | iShares Core U.S. Aggregate Bond ETF | 138,948,130,000 |
| SGOV | iShares 0-3 Month Treasury Bond ETF | 121,451,390,000 |
Quick start
Choose where to run iShares 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 'ishares' AS ishares (
TYPE vgi,
LOCATION 'github-auto://Query-farm/vgi-etf-ishares'
);
Attach the signed image
Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.
ATTACH 'ishares' AS ishares (
TYPE vgi,
LOCATION 'oci://ghcr.io/query-farm/vgi-etf-ishares:0.5.0'
);
3. Run a query
SELECT ticker, fund_name, net_assets
FROM ishares.main.products
ORDER BY net_assets DESC
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 'ishares' AS ishares
(TYPE vgi, LOCATION 'https://your-connector.example.com');
4. Run a query
SELECT ticker, fund_name, net_assets
FROM ishares.main.products
ORDER BY net_assets DESC
LIMIT 5;
Query Farm operates iShares 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 ishares as the catalog alias for the query below.
4. Run a query
SELECT ticker, fund_name, net_assets
FROM ishares.main.products
ORDER BY net_assets DESC
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 'ishares' AS ishares (
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 'ishares' AS ishares (
TYPE vgi,
LOCATION 'oci://ghcr.io/query-farm/vgi-etf-ishares:0.5.0'
);
Overview
iShares (BlackRock) US fund data from iShares' public product feed: screen the lineup on fund facts, inspect a fund's holdings as of a past date, and pull per-fund distribution and NAV history β vgi-etf-ishares
iShares ETFs
iShares (BlackRock) US fund data, exposed as DuckDB tables and table functions.
Two ideas run through everything. First, the fund is the unit of the data and is keyed by an exchange ticker (e.g. IVV) β begin at the catalog to discover that key, then drill into a fund. Second, fund holdings are point-in-time: you can ask for a fund's constituents as of any past business day, which makes day-over-day portfolio comparison possible.
Sources
- iShares ETF screener β the US fund lineup the catalog is read from.
- Example fund page (IVV) β a fund page with the holdings, distributions and NAV data exposed here.
- BlackRock terms and conditions β terms that govern use of the site's data.
Data is provided for informational use; review iShares' terms before redistribution.
Catalog
Everything ishares exposes once attached β read straight from the worker's
released build.
main 2 tables Β· 4 functions
iShares fund data: product catalog, detailed holdings, and per-fund history.
Schema examples (8)
Ten largest iShares ETFs by net assets
SELECT ticker, fund_name, net_assets
FROM ishares.main.products
ORDER BY net_assets DESC
LIMIT 10;
Top holdings of IVV
SELECT ticker, name, weight_percent
FROM ishares.main.holdings
WHERE fund_ticker = 'IVV'
ORDER BY weight_percent DESC
LIMIT 10;
Join holdings to the catalog: a fund's top holdings alongside its fund-level facts (holdings.fund_ticker = products.ticker)
SELECT p.fund_name, p.expense_ratio_percent, h.ticker, h.name,
h.weight_percent
FROM ishares.main.holdings h
JOIN ishares.main.products p ON h.fund_ticker = p.ticker
WHERE h.fund_ticker = 'IVV'
ORDER BY h.weight_percent DESC
LIMIT 10;
Recent daily NAV history for IVV
SELECT as_of_date, nav
FROM ishares.main.nav_history('IVV', start_date := DATE '2026-01-01')
ORDER BY as_of_date DESC;
4 more examples
Portfolio drift: IVV's ten largest current stock holdings beside their weight on 2025-12-31 (the holdings table joined to itself read AT that date, matched on ISIN) and the change in percentage points
WITH cur AS (SELECT isin, ticker, name, weight_percent FROM ishares.main.holdings WHERE fund_ticker = 'IVV' AND asset_class = 'Equity'), prev AS (SELECT isin, weight_percent FROM ishares.main.holdings AT (TIMESTAMP => DATE '2025-12-31') WHERE fund_ticker = 'IVV' AND asset_class = 'Equity') SELECT cur.ticker, cur.name, round(prev.weight_percent, 2) AS weight_2025_12_31, round(cur.weight_percent, 2) AS weight_now, round(cur.weight_percent - prev.weight_percent, 2) AS change_pp
FROM cur
LEFT JOIN prev USING (isin)
ORDER BY cur.weight_percent DESC, cur.ticker
LIMIT 10;
Portfolio overlap of IVV (S&P 500) and IUSG (S&P 900 Growth): how many stocks both hold and the overlapping weight (sum over shared stocks of the smaller of the two weights, percent points)
WITH h AS (SELECT fund_ticker, isin, weight_percent FROM ishares.main.holdings WHERE fund_ticker IN ('IVV', 'IUSG') AND asset_class = 'Equity') SELECT count(*) AS shared_stocks, round(sum(least(a.weight_percent, b.weight_percent)), 1) AS overlap_percent
FROM h a
JOIN h b ON a.isin = b.isin
WHERE a.fund_ticker = 'IVV' AND b.fund_ticker = 'IUSG';
Bond funds bottom-up: weight-averaged yield to maturity and duration computed from the holdings of AGG, HYG and TLT, beside each fund's published 30-day SEC yield from products
WITH h AS (SELECT fund_ticker, sum(weight_percent * ytm_percent) / sum(weight_percent) AS ytm, sum(weight_percent * duration) / sum(weight_percent) AS dur FROM ishares.main.holdings WHERE fund_ticker IN ('AGG', 'HYG', 'TLT') AND ytm_percent IS NOT NULL AND duration IS NOT NULL GROUP BY fund_ticker) SELECT p.ticker, p.fund_name, round(h.ytm, 2) AS weighted_ytm_percent, round(h.dur, 2) AS weighted_duration_years, p.thirty_day_sec_yield_percent
FROM h
JOIN ishares.main.products p ON p.ticker = h.fund_ticker
ORDER BY weighted_duration_years;
IVV's trailing-12-month distribution yield recomputed from distributions (per-share payouts over the last year) and the latest nav_history NAV, beside the twelve_month_yield_percent that products publishes
WITH ttm AS (SELECT sum(total_distribution) AS dist FROM ishares.main.distributions('IVV', start_date := CAST(current_date - INTERVAL 1 YEAR AS DATE))), nav AS (SELECT max(as_of_date) AS nav_date, arg_max(nav, as_of_date) AS nav FROM ishares.main.nav_history('IVV', start_date := CAST(current_date - INTERVAL 14 DAY AS DATE))) SELECT p.ticker, nav.nav_date, round(ttm.dist, 4) AS ttm_distributions, round(nav.nav, 2) AS latest_nav, round(100 * ttm.dist / nav.nav, 2) AS computed_ttm_yield_percent, p.twelve_month_yield_percent
FROM ttm,
nav,
ishares.main.products p
WHERE p.ticker = 'IVV';
holdings
Detailed fund holdings, hive-partitioned by fund_ticker (filter WHERE fund_ticker = β¦ for one fund, or scan unfiltered for all) with the as-of date as a time-travel coordinate (AT (TIMESTAMP => DATE 'β¦')).
Top 10 current holdings of IVV
SELECT ticker, name, weight_percent
FROM ishares.main.holdings
WHERE fund_ticker = 'IVV'
ORDER BY weight_percent DESC
LIMIT 10;
Portfolio drift: IVV's ten largest current stock holdings beside their weight on 2025-12-31 (the holdings table joined to itself read AT that date, matched on ISIN) and the change in percentage points
WITH cur AS (SELECT isin, ticker, name, weight_percent FROM ishares.main.holdings WHERE fund_ticker = 'IVV' AND asset_class = 'Equity'), prev AS (SELECT isin, weight_percent FROM ishares.main.holdings AT (TIMESTAMP => DATE '2025-12-31') WHERE fund_ticker = 'IVV' AND asset_class = 'Equity') SELECT cur.ticker, cur.name, round(prev.weight_percent, 2) AS weight_2025_12_31, round(cur.weight_percent, 2) AS weight_now, round(cur.weight_percent - prev.weight_percent, 2) AS change_pp
FROM cur
LEFT JOIN prev USING (isin)
ORDER BY cur.weight_percent DESC, cur.ticker
LIMIT 10;
Portfolio overlap of IVV (S&P 500) and IUSG (S&P 900 Growth): how many stocks both hold and the overlapping weight (sum over shared stocks of the smaller of the two weights, percent points)
WITH h AS (SELECT fund_ticker, isin, weight_percent FROM ishares.main.holdings WHERE fund_ticker IN ('IVV', 'IUSG') AND asset_class = 'Equity') SELECT count(*) AS shared_stocks, round(sum(least(a.weight_percent, b.weight_percent)), 1) AS overlap_percent
FROM h a
JOIN h b ON a.isin = b.isin
WHERE a.fund_ticker = 'IVV' AND b.fund_ticker = 'IUSG';
5 more examples
Bond funds bottom-up: weight-averaged yield to maturity and duration computed from the holdings of AGG, HYG and TLT, beside each fund's published 30-day SEC yield from products
WITH h AS (SELECT fund_ticker, sum(weight_percent * ytm_percent) / sum(weight_percent) AS ytm, sum(weight_percent * duration) / sum(weight_percent) AS dur FROM ishares.main.holdings WHERE fund_ticker IN ('AGG', 'HYG', 'TLT') AND ytm_percent IS NOT NULL AND duration IS NOT NULL GROUP BY fund_ticker) SELECT p.ticker, p.fund_name, round(h.ytm, 2) AS weighted_ytm_percent, round(h.dur, 2) AS weighted_duration_years, p.thirty_day_sec_yield_percent
FROM h
JOIN ishares.main.products p ON p.ticker = h.fund_ticker
ORDER BY weighted_duration_years;
IVV holdings as of a past date (time travel)
SELECT ticker, weight_percent
FROM ishares.main.holdings AT (TIMESTAMP => DATE '2025-12-31')
WHERE fund_ticker = 'IVV';
Two funds at once (partition fan-out)
SELECT ticker, name, weight_percent
FROM ishares.main.holdings
WHERE fund_ticker IN ('IVV', 'AGG');
SELECT ticker, name, weight_percent
FROM ishares.main.holdings()
WHERE fund_ticker = 'IVV'
ORDER BY weight_percent DESC
LIMIT 10;
SELECT fund_ticker, count(*)
FROM ishares.main.holdings()
WHERE fund_ticker IN ('IVV', 'AGG')
GROUP BY fund_ticker;
products
Every iShares US product with its key facts, one row per fund. Query directly (no arguments) and filter with WHERE; percent columns are in percent points.
Ten largest iShares ETFs by net assets
SELECT ticker, fund_name, net_assets
FROM ishares.main.products
WHERE product_view = 'etf'
ORDER BY net_assets DESC
LIMIT 10;
Cheapest bond ETFs by expense ratio
SELECT ticker, fund_name, expense_ratio_percent
FROM ishares.main.products
WHERE asset_class = 'Fixed Income'
ORDER BY expense_ratio_percent
LIMIT 10;
Look up a single fund by ticker
SELECT ticker, fund_name, expense_ratio_percent
FROM ishares.main.products
WHERE ticker = 'IVV';
distributions (fund VARCHAR, end_date := DATE, start_date := DATE)
Full distribution history for a fund β one row per distribution with ex/record/payable dates and the per-share total split into income, short- and long-term capital gains, and return of capital. fund is a ticker; bound the ex-date range with start_date/end_date.
Recent IVV distributions
SELECT ex_date, total_distribution
FROM ishares.main.distributions('IVV')
ORDER BY ex_date DESC
LIMIT 8;
Total distributions since a start date
SELECT sum(total_distribution) AS ttm_income
FROM ishares.main.distributions('IVV', start_date := DATE '2025-01-01');
IVV's trailing-12-month distribution yield recomputed from distributions (per-share payouts over the last year) and the latest nav_history NAV, beside the twelve_month_yield_percent that products publishes
WITH ttm AS (SELECT sum(total_distribution) AS dist FROM ishares.main.distributions('IVV', start_date := CAST(current_date - INTERVAL 1 YEAR AS DATE))), nav AS (SELECT max(as_of_date) AS nav_date, arg_max(nav, as_of_date) AS nav FROM ishares.main.nav_history('IVV', start_date := CAST(current_date - INTERVAL 14 DAY AS DATE))) SELECT p.ticker, nav.nav_date, round(ttm.dist, 4) AS ttm_distributions, round(nav.nav, 2) AS latest_nav, round(100 * ttm.dist / nav.nav, 2) AS computed_ttm_yield_percent, p.twelve_month_yield_percent
FROM ttm,
nav,
ishares.main.products p
WHERE p.ticker = 'IVV';
fund_details (fund VARCHAR)
A wide one-row snapshot of a single fund's key facts and portfolio characteristics: exchange, tracked index, shares outstanding, premium/discount, 30-day average volume, median bid-ask spread, number of holdings, P/E, P/B, 3-year beta & standard deviation, yields, and the fund's investment objective and key benefits. fund is a ticker or ticker.
Key characteristics for IVV
SELECT ticker, index_name, num_holdings, pe_ratio
FROM ishares.main.fund_details('IVV');
Trading quality: premium/discount and spread
SELECT ticker, premium_discount_percent, median_bid_ask_spread_percent
FROM ishares.main.fund_details('IVV');
The fund's investment objective (plain text)
SELECT objective FROM ishares.main.fund_details('IVV');
holding_dates (fund VARCHAR)
The featured as-of dates iShares surfaces for a fund's holdings (typically the latest day plus recent month-/year-ends). fund is a ticker (e.g. 'IVV'). Note: holdings() also accepts arbitrary business days beyond this list.
Featured holdings dates for IVV
SELECT as_of_date
FROM ishares.main.holding_dates('IVV')
ORDER BY as_of_date DESC;
The most recent featured holdings date (feed it to holdings())
SELECT max(as_of_date) AS latest_featured
FROM ishares.main.holding_dates('IVV');
Try these queries
top_holdings β The top holdings of the iShares Core S&P 500 ETF
SELECT ticker, name, weight_percent
FROM ishares.main.holdings
WHERE fund_ticker = 'IVV'
ORDER BY weight_percent DESC
LIMIT 5;
Uses holdings
Ten largest iShares ETFs by net assets
SELECT ticker, fund_name, net_assets
FROM ishares.main.products
ORDER BY net_assets DESC
LIMIT 10
Uses products
Recent daily NAV history for IVV
SELECT as_of_date, nav
FROM ishares.main.nav_history('IVV', start_date := DATE '2026-01-01')
ORDER BY as_of_date DESC
Uses nav_history
IVV's trailing-12-month distribution yield recomputed from distributions (per-share payouts over the last year) and the latest nav_history NAV, beside the twelve_month_yield_percent that products publishes
WITH ttm AS (SELECT sum(total_distribution) AS dist FROM ishares.main.distributions('IVV', start_date := CAST(current_date - INTERVAL 1 YEAR AS DATE))), nav AS (SELECT max(as_of_date) AS nav_date, arg_max(nav, as_of_date) AS nav FROM ishares.main.nav_history('IVV', start_date := CAST(current_date - INTERVAL 14 DAY AS DATE))) SELECT p.ticker, nav.nav_date, round(ttm.dist, 4) AS ttm_distributions, round(nav.nav, 2) AS latest_nav, round(100 * ttm.dist / nav.nav, 2) AS computed_ttm_yield_percent, p.twelve_month_yield_percent
FROM ttm,
nav,
ishares.main.products p
WHERE p.ticker = 'IVV'
Featured holdings dates for IVV
SELECT as_of_date
FROM ishares.main.holding_dates('IVV')
ORDER BY as_of_date DESC
Uses holding_dates
Key characteristics for IVV
SELECT ticker, index_name, num_holdings, pe_ratio
FROM ishares.main.fund_details('IVV')
Uses fund_details
18 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 iShares offer an ETF with the ticker IVV, and what is it called?
- What is the single largest holding of the iShares Core S&P 500 ETF (IVV) right now?
- What were the top holdings of IVV as of the end of 2025?
- Using the holdings backing scan function (call it with parentheses), list a few IVV constituents by weight.
- What is the expense ratio of the iShares Core S&P 500 ETF (IVV)?
- Which index does the iShares Core S&P 500 ETF (IVV) track?
iShares 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
Vanguard ETFs
Markets & finance
Screen the Vanguard US ETF lineup and query current fund holdings, distributions and daily NAV and price history
SPDR ETFs
Markets & finance
State Street SPDR ETF facts, current holdings and daily NAV history from the public SSGA feed