Global X ETFs
Global X US ETF product 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-globalx/index.md to help me query Global X 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 globalx.main.products
ORDER BY net_assets DESC
LIMIT 5;
| ticker | fund_name | net_assets |
|---|---|---|
| PAVE | U.S. Infrastructure Development ETF | 13,139,466,000 |
| AIQ | Artificial Intelligence & Technology ETF | 9,145,401,400 |
| QYLD | Nasdaq 100® Covered Call ETF | 7,490,430,200 |
| SHLD | Defense Tech ETF | 5,002,949,300 |
| COPX | Copper Miners ETF | 4,709,425,500 |
Quick start
Choose where to run Global X 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 'globalx' AS globalx (
TYPE vgi,
LOCATION 'github-auto://Query-farm/vgi-etf-globalx'
);
Attach the signed image
Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.
ATTACH 'globalx' AS globalx (
TYPE vgi,
LOCATION 'oci://ghcr.io/query-farm/vgi-etf-globalx:0.5.0'
);
3. Run a query
SELECT ticker, fund_name, net_assets
FROM globalx.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 'globalx' AS globalx
(TYPE vgi, LOCATION 'https://your-connector.example.com');
4. Run a query
SELECT ticker, fund_name, net_assets
FROM globalx.main.products
ORDER BY net_assets DESC
LIMIT 5;
Query Farm hosting is not available for Global X 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 the release directly
Uses the verified release each time you attach the connector.
ATTACH 'globalx' AS globalx (
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 'globalx' AS globalx (
TYPE vgi,
LOCATION 'oci://ghcr.io/query-farm/vgi-etf-globalx:0.5.0'
);
Overview
Global X US ETF data as DuckDB tables: products (catalog) & holdings (ticker-partitioned, current holdings) — vgi-etf-globalx
Global X ETFs
Global X US ETF data, exposed as DuckDB tables.
The fund is the unit of the data and is keyed by an exchange ticker (e.g. QYLD) — begin at the catalog to discover that key, then drill into a fund's holdings. Holdings are the current published portfolio (Global X does not publish historical holdings).
Sources
- Global X ETF explorer — the fund lineup the catalog is read from.
- Example fund page (QYLD) — a per-fund page with the facts and holdings exposed here.
Data is provided for informational use; review Global X's terms before redistribution.
Catalog
Everything globalx exposes once attached — read straight from the worker's
released build.
main 2 tables · 1 function
Global X fund data: the ETF catalog and detailed current holdings.
Schema examples (6)
Ten largest Global X ETFs by net assets
SELECT ticker, fund_name, net_assets
FROM globalx.main.products
ORDER BY net_assets DESC
LIMIT 10;
Top holdings of QYLD
SELECT name, ticker, weight_percent
FROM globalx.main.holdings
WHERE fund_ticker = 'QYLD'
ORDER BY weight_percent DESC
LIMIT 10;
Join a fund's catalog facts to its top holdings (fund_ticker = products.ticker)
SELECT p.fund_name, p.net_assets, h.name AS holding, h.weight_percent
FROM globalx.main.products p
JOIN globalx.main.holdings h ON h.fund_ticker = p.ticker
WHERE p.ticker = 'QYLD'
ORDER BY h.weight_percent DESC
LIMIT 5;
The ten Global X ETFs with the largest dollar position in NVIDIA, with each fund's name and sub-theme from products (scans every fund's holdings, so it takes a few seconds)
SELECT h.fund_ticker, p.fund_name, p.sub_theme, h.weight_percent,
h.market_value
FROM globalx.main.holdings h
JOIN globalx.main.products p ON p.ticker = h.fund_ticker
WHERE h.ticker = 'NVDA'
ORDER BY h.market_value DESC
LIMIT 10;
2 more examples
Portfolio overlap of QYLD (Nasdaq-100) and XYLD (S&P 500): how many constituents both hold (matched on SEDOL) and the overlap weight, the sum of the smaller weight of each shared holding
SELECT count(*) AS shared_constituents,
round(sum(least(q.weight_percent, x.weight_percent)), 2) AS overlap_weight_percent
FROM globalx.main.holdings q
JOIN globalx.main.holdings x ON x.sedol = q.sedol
WHERE q.fund_ticker = 'QYLD' AND x.fund_ticker = 'XYLD' AND q.sedol <> '';
The most concentrated Thematic ETFs: weight in each fund's top 10 ticker-bearing holdings (cash and other untickered lines excluded), its number of such holdings, and its gross expense ratio (scans every fund's holdings, so it takes a few seconds)
WITH ranked AS (SELECT fund_ticker, weight_percent, row_number() OVER (PARTITION BY fund_ticker ORDER BY weight_percent DESC) AS rnk FROM globalx.main.holdings WHERE ticker IS NOT NULL) SELECT p.ticker, p.fund_name, p.gross_expense_ratio_percent, count(*) AS constituents, round(sum(r.weight_percent) FILTER (WHERE r.rnk <= 10), 2) AS top10_weight_percent
FROM globalx.main.products p
JOIN ranked r ON r.fund_ticker = p.ticker
WHERE p.sub_theme = 'Thematic'
GROUP BY ALL
ORDER BY top10_weight_percent 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). Global X publishes current holdings only (no historical dates).
Top 10 current holdings of QYLD
SELECT name, ticker, weight_percent
FROM globalx.main.holdings
WHERE fund_ticker = 'QYLD'
ORDER BY weight_percent DESC
LIMIT 10;
The largest positions of the Copper Miners ETF
SELECT name, weight_percent, market_value
FROM globalx.main.holdings
WHERE fund_ticker = 'COPX'
ORDER BY weight_percent DESC
LIMIT 10;
Two funds at once (partition fan-out)
SELECT fund_ticker, name, weight_percent
FROM globalx.main.holdings
WHERE fund_ticker IN ('QYLD', 'COPX');
2 more examples
The ten Global X ETFs with the largest dollar position in NVIDIA, with each fund's name and sub-theme from products (scans every fund's holdings, so it takes a few seconds)
SELECT h.fund_ticker, p.fund_name, p.sub_theme, h.weight_percent,
h.market_value
FROM globalx.main.holdings h
JOIN globalx.main.products p ON p.ticker = h.fund_ticker
WHERE h.ticker = 'NVDA'
ORDER BY h.market_value DESC
LIMIT 10;
Portfolio overlap of QYLD (Nasdaq-100) and XYLD (S&P 500): how many constituents both hold (matched on SEDOL) and the overlap weight, the sum of the smaller weight of each shared holding
SELECT count(*) AS shared_constituents,
round(sum(least(q.weight_percent, x.weight_percent)), 2) AS overlap_weight_percent
FROM globalx.main.holdings q
JOIN globalx.main.holdings x ON x.sedol = q.sedol
WHERE q.fund_ticker = 'QYLD' AND x.fund_ticker = 'XYLD' AND q.sedol <> '';
products
Every Global X 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 Global X ETFs by net assets
SELECT ticker, fund_name, net_assets
FROM globalx.main.products
ORDER BY net_assets DESC
LIMIT 10;
Cheapest funds by gross expense ratio
SELECT ticker, fund_name, gross_expense_ratio_percent
FROM globalx.main.products
ORDER BY gross_expense_ratio_percent
LIMIT 10;
Look up a single fund by ticker
SELECT ticker, fund_name, gross_expense_ratio_percent
FROM globalx.main.products
WHERE ticker = 'QYLD';
2 more examples
Join a fund's catalog facts to its top holdings (fund_ticker = products.ticker)
SELECT p.fund_name, p.net_assets, h.name AS holding, h.weight_percent
FROM globalx.main.products p
JOIN globalx.main.holdings h ON h.fund_ticker = p.ticker
WHERE p.ticker = 'QYLD'
ORDER BY h.weight_percent DESC
LIMIT 5;
The most concentrated Thematic ETFs: weight in each fund's top 10 ticker-bearing holdings (cash and other untickered lines excluded), its number of such holdings, and its gross expense ratio (scans every fund's holdings, so it takes a few seconds)
WITH ranked AS (SELECT fund_ticker, weight_percent, row_number() OVER (PARTITION BY fund_ticker ORDER BY weight_percent DESC) AS rnk FROM globalx.main.holdings WHERE ticker IS NOT NULL) SELECT p.ticker, p.fund_name, p.gross_expense_ratio_percent, count(*) AS constituents, round(sum(r.weight_percent) FILTER (WHERE r.rnk <= 10), 2) AS top10_weight_percent
FROM globalx.main.products p
JOIN ranked r ON r.fund_ticker = p.ticker
WHERE p.sub_theme = 'Thematic'
GROUP BY ALL
ORDER BY top10_weight_percent DESC
LIMIT 10;
holdings_scan (fund_ticker := VARCHAR)
Backing scan for the holdings table — prefer the holdings table. Returns detailed fund holdings, hive-partitioned by fund_ticker, weight-descending. Pass a single fund's ticker to scan just that fund, or call with no argument to stream every fund's holdings. weight_percent is in percent points; Global X publishes current holdings only.
Top 10 holdings of QYLD, passing the fund ticker as the argument
SELECT name, weight_percent
FROM globalx.main.holdings_scan(fund_ticker => 'QYLD')
ORDER BY weight_percent DESC
LIMIT 10;
Two funds at once via a pushed IN filter on the no-argument scan
SELECT fund_ticker, count(*)
FROM globalx.main.holdings_scan()
WHERE fund_ticker IN ('QYLD', 'COPX')
GROUP BY fund_ticker;
Try these queries
top_holdings — The top holdings of the Global X Nasdaq 100 Covered Call ETF
SELECT name, ticker, weight_percent
FROM globalx.main.holdings
WHERE fund_ticker = 'QYLD'
ORDER BY weight_percent DESC
LIMIT 5;
Uses holdings
Ten largest Global X ETFs by net assets
SELECT ticker, fund_name, net_assets
FROM globalx.main.products
ORDER BY net_assets DESC
LIMIT 10
Uses products
Top holdings of QYLD
SELECT name, ticker, weight_percent
FROM globalx.main.holdings
WHERE fund_ticker = 'QYLD'
ORDER BY weight_percent DESC
LIMIT 10
Uses holdings
Join a fund's catalog facts to its top holdings (fund_ticker = products.ticker)
SELECT p.fund_name, p.net_assets, h.name AS holding, h.weight_percent
FROM globalx.main.products p
JOIN globalx.main.holdings h ON h.fund_ticker = p.ticker
WHERE p.ticker = 'QYLD'
ORDER BY h.weight_percent DESC
LIMIT 5
The ten Global X ETFs with the largest dollar position in NVIDIA, with each fund's name and sub-theme from products (scans every fund's holdings, so it takes a few seconds)
SELECT h.fund_ticker, p.fund_name, p.sub_theme, h.weight_percent,
h.market_value
FROM globalx.main.holdings h
JOIN globalx.main.products p ON p.ticker = h.fund_ticker
WHERE h.ticker = 'NVDA'
ORDER BY h.market_value DESC
LIMIT 10
Top 10 holdings of QYLD, passing the fund ticker as the argument
SELECT name, weight_percent
FROM globalx.main.holdings_scan(fund_ticker => 'QYLD')
ORDER BY weight_percent DESC
LIMIT 10
Uses holdings_scan
7 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 Global X offer an ETF with the ticker QYLD, and what is it called?
- What is the gross expense ratio of the Global X Nasdaq 100 Covered Call ETF (QYLD)?
- What is the single largest holding of the Global X Nasdaq 100 Covered Call ETF (QYLD) right now?
- Using the holdings backing scan function with the fund ticker as its argument, list a few QYLD constituents by weight.
Global X 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
First Trust ETFs
Markets & finance
Screen First Trust US ETFs and see each fund's facts and current holdings
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