First Trust ETFs
Screen First Trust US ETFs and see each fund's facts and current holdings
- 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-first-trust/index.md to help me query First Trust 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.
income_funds
Example output · captured
- Connector release
- v0.5.0
- Engine
- 2.0.1
- VGI protocol
- 3.4.0
SELECT ticker, fund_name, distribution_rate_12m_percent
FROM firsttrust.main.products
WHERE category = 'Income Funds'
ORDER BY distribution_rate_12m_percent DESC
LIMIT 5;
| ticker | fund_name | distribution_rate_12m_percent |
|---|---|---|
| IGLD | FT Vest Gold Strategy Target Income ETF® | 26.23 |
| DFII | FT Vest Bitcoin Strategy & Target Income ETF | 19.75 |
| HYTI | FT Vest High Yield & Target Income ETF | 10.68 |
| FFLX | First Trust Flexible Income ETF | 10.57 |
| LTTI | FT Vest 20+ Year Treasury & Target Income ETF | 9.47 |
Quick start
Choose where to run First Trust 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 'firsttrust' AS firsttrust (
TYPE vgi,
LOCATION 'github-auto://Query-farm/vgi-etf-first-trust'
);
Attach the signed image
Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.
ATTACH 'firsttrust' AS firsttrust (
TYPE vgi,
LOCATION 'oci://ghcr.io/query-farm/vgi-etf-first-trust:0.5.0'
);
3. Run a query
SELECT ticker, fund_name, distribution_rate_12m_percent
FROM firsttrust.main.products
WHERE category = 'Income Funds'
ORDER BY distribution_rate_12m_percent 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 'firsttrust' AS firsttrust
(TYPE vgi, LOCATION 'https://your-connector.example.com');
4. Run a query
SELECT ticker, fund_name, distribution_rate_12m_percent
FROM firsttrust.main.products
WHERE category = 'Income Funds'
ORDER BY distribution_rate_12m_percent DESC
LIMIT 5;
Query Farm operates First Trust 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 firsttrust as the catalog alias for the query below.
4. Run a query
SELECT ticker, fund_name, distribution_rate_12m_percent
FROM firsttrust.main.products
WHERE category = 'Income Funds'
ORDER BY distribution_rate_12m_percent 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 'firsttrust' AS firsttrust (
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 'firsttrust' AS firsttrust (
TYPE vgi,
LOCATION 'oci://ghcr.io/query-farm/vgi-etf-first-trust:0.5.0'
);
Overview
First Trust US ETF data as DuckDB tables: products (catalog) & holdings (ticker-partitioned, current holdings), plus fund_details — vgi-etf-first-trust
First Trust ETFs
First Trust US ETF data, exposed as DuckDB tables and a table function.
The fund is the unit of the data and is keyed by an exchange ticker (e.g. FTCS) — begin at the catalog to discover that key, then drill into a fund's deeper facts or its holdings. Holdings are the current published portfolio (First Trust does not publish historical holdings).
Sources
- First Trust ETF list — the fund lineup the catalog is read from.
- Example fund summary (FTCS) — the per-fund summary pages behind
fund_details(holdings come from the matching EtfHoldings page). - First Trust legal information — terms that govern use of the site's data.
Data is provided for informational use; review First Trust's terms before redistribution.
Catalog
Everything firsttrust exposes once attached — read straight from the worker's
released build.
main 2 tables · 1 function
First Trust fund data: the ETF catalog, per-fund details, and detailed current holdings.
Schema examples (5)
Highest-yielding First Trust ETFs
SELECT ticker, fund_name, sec_yield_30day_percent
FROM firsttrust.main.products
WHERE sec_yield_30day_percent IS NOT NULL
ORDER BY sec_yield_30day_percent DESC
LIMIT 10;
Top holdings of FTCS
SELECT name, ticker, weight_percent
FROM firsttrust.main.holdings
WHERE fund_ticker = 'FTCS'
ORDER BY weight_percent DESC
LIMIT 10;
The three largest positions of every Alternative fund, with the fund's name — products picks the funds by category and holdings supplies their positions (futures, cash and fund-of-fund lines included)
SELECT p.ticker, p.fund_name, h.name, h.weight_percent
FROM firsttrust.main.products p
JOIN firsttrust.main.holdings h ON h.fund_ticker = p.ticker
WHERE p.category = 'Alternative Funds'
QUALIFY row_number() OVER (PARTITION BY p.ticker ORDER BY h.weight_percent DESC) <= 3
ORDER BY p.ticker, h.weight_percent DESC;
Concentration screen of the Sector & Industry funds: each fund's number of listed holding lines and the combined weight of its top 10, most concentrated first
SELECT p.ticker, p.fund_name, count(*) AS positions,
round(sum(h.weight_percent) FILTER (WHERE h.rn <= 10), 2) AS top10_weight_percent
FROM firsttrust.main.products p
JOIN (SELECT fund_ticker, weight_percent, row_number() OVER (PARTITION BY fund_ticker ORDER BY weight_percent DESC) AS rn FROM firsttrust.main.holdings) h ON h.fund_ticker = p.ticker
WHERE p.category = 'Sector & Industry Funds'
GROUP BY p.ticker, p.fund_name
ORDER BY top10_weight_percent DESC;
1 more example
Reconcile FTCS's published holdings with its fund facts: reported holding count vs listed lines (which include cash), and the holdings' total market value as a percent of net assets
WITH h AS (SELECT count(*) AS listed_positions, sum(market_value) AS holdings_value FROM firsttrust.main.holdings WHERE fund_ticker = 'FTCS') SELECT d.ticker, d.num_holdings, h.listed_positions, d.net_assets, h.holdings_value, round(100 * h.holdings_value / d.net_assets, 2) AS pct_of_net_assets
FROM firsttrust.main.fund_details('FTCS') d
CROSS JOIN h
ORDER BY d.ticker;
holdings
Detailed current fund holdings, hive-partitioned by fund_ticker (filter WHERE fund_ticker = … for one fund, or scan unfiltered for all). First Trust publishes current holdings only (no historical dates).
Top 10 current holdings of FTCS
SELECT name, ticker, weight_percent
FROM firsttrust.main.holdings
WHERE fund_ticker = 'FTCS'
ORDER BY weight_percent DESC
LIMIT 10;
The sector mix of a fund
SELECT sector, sum(weight_percent) AS weight
FROM firsttrust.main.holdings
WHERE fund_ticker = 'FTCS'
GROUP BY sector
ORDER BY weight DESC;
Two funds at once (partition fan-out)
SELECT fund_ticker, name, weight_percent
FROM firsttrust.main.holdings
WHERE fund_ticker IN ('FTCS', 'AIRR');
3 more examples
The three largest positions of every Alternative fund, with the fund's name — products picks the funds by category and holdings supplies their positions (futures, cash and fund-of-fund lines included)
SELECT p.ticker, p.fund_name, h.name, h.weight_percent
FROM firsttrust.main.products p
JOIN firsttrust.main.holdings h ON h.fund_ticker = p.ticker
WHERE p.category = 'Alternative Funds'
QUALIFY row_number() OVER (PARTITION BY p.ticker ORDER BY h.weight_percent DESC) <= 3
ORDER BY p.ticker, h.weight_percent DESC;
SELECT name, weight_percent
FROM firsttrust.main.holdings()
WHERE fund_ticker = 'FTCS'
ORDER BY weight_percent DESC
LIMIT 10;
SELECT fund_ticker, count(*)
FROM firsttrust.main.holdings()
WHERE fund_ticker IN ('FTCS', 'AIRR')
GROUP BY fund_ticker;
products
Every First Trust US ETF with its key facts, one row per fund. Query directly (no arguments) and filter with WHERE; percent columns are in percent points.
Highest 30-day SEC yields in the lineup
SELECT ticker, fund_name, sec_yield_30day_percent
FROM firsttrust.main.products
WHERE sec_yield_30day_percent IS NOT NULL
ORDER BY sec_yield_30day_percent DESC
LIMIT 10;
Every income fund
SELECT ticker, fund_name, distribution_rate_12m_percent
FROM firsttrust.main.products
WHERE category = 'Income Funds'
ORDER BY distribution_rate_12m_percent DESC;
Look up a single fund by ticker
SELECT ticker, fund_name, inception_date, nav
FROM firsttrust.main.products
WHERE ticker = 'FTCS';
1 more example
Concentration screen of the Sector & Industry funds: each fund's number of listed holding lines and the combined weight of its top 10, most concentrated first
SELECT p.ticker, p.fund_name, count(*) AS positions,
round(sum(h.weight_percent) FILTER (WHERE h.rn <= 10), 2) AS top10_weight_percent
FROM firsttrust.main.products p
JOIN (SELECT fund_ticker, weight_percent, row_number() OVER (PARTITION BY fund_ticker ORDER BY weight_percent DESC) AS rn FROM firsttrust.main.holdings) h ON h.fund_ticker = p.ticker
WHERE p.category = 'Sector & Industry Funds'
GROUP BY p.ticker, p.fund_name
ORDER BY top10_weight_percent DESC;
fund_details (fund VARCHAR)
A one-row snapshot of a single fund's key facts from its summary page: full name, investment advisor, total net assets, shares outstanding, recent daily volume, number of holdings, gross/net expense ratio, and the fund's investment objective. fund is a ticker (e.g. 'FTCS'). These are the facts the products catalog does not carry.
Key facts for FTCS
SELECT ticker, net_assets, expense_ratio_percent, num_holdings
FROM firsttrust.main.fund_details('FTCS');
The fund's investment objective (plain text)
SELECT objective FROM firsttrust.main.fund_details('FTCS');
Reconcile FTCS's published holdings with its fund facts: reported holding count vs listed lines (which include cash), and the holdings' total market value as a percent of net assets
WITH h AS (SELECT count(*) AS listed_positions, sum(market_value) AS holdings_value FROM firsttrust.main.holdings WHERE fund_ticker = 'FTCS') SELECT d.ticker, d.num_holdings, h.listed_positions, d.net_assets, h.holdings_value, round(100 * h.holdings_value / d.net_assets, 2) AS pct_of_net_assets
FROM firsttrust.main.fund_details('FTCS') d
CROSS JOIN h
ORDER BY d.ticker;
Try these queries
top_holdings — The top holdings of the First Trust Capital Strength ETF
SELECT name, ticker, weight_percent
FROM firsttrust.main.holdings
WHERE fund_ticker = 'FTCS'
ORDER BY weight_percent DESC
LIMIT 5;
Uses holdings
fund_facts — Expense ratio and net assets for a fund
SELECT ticker, net_assets, expense_ratio_percent
FROM firsttrust.main.fund_details('FTCS');
Uses fund_details
Highest-yielding First Trust ETFs
SELECT ticker, fund_name, sec_yield_30day_percent
FROM firsttrust.main.products
WHERE sec_yield_30day_percent IS NOT NULL
ORDER BY sec_yield_30day_percent DESC
LIMIT 10
Uses products
Top holdings of FTCS
SELECT name, ticker, weight_percent
FROM firsttrust.main.holdings
WHERE fund_ticker = 'FTCS'
ORDER BY weight_percent DESC
LIMIT 10
Uses holdings
Top 10 holdings of FTCS via the backing scan
SELECT name, weight_percent
FROM firsttrust.main.holdings()
WHERE fund_ticker = 'FTCS'
ORDER BY weight_percent DESC
LIMIT 10
Two partitions at once (fan-out)
SELECT fund_ticker, count(*)
FROM firsttrust.main.holdings()
WHERE fund_ticker IN ('FTCS', 'AIRR')
GROUP BY fund_ticker
9 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 First Trust offer an ETF with the ticker FTCS, and what is it called?
- What is the expense ratio of the First Trust Capital Strength ETF (FTCS)?
- What is the single largest holding of the First Trust Capital Strength ETF (FTCS) right now?
- Using the holdings() table function, list a few FTCS constituents by weight.
First Trust 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
Global X ETFs
Markets & finance
Global X US ETF product facts and current fund holdings as SQL tables
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