# ETF Holdings, U.S. Treasury Yields and Macroeconomic Indicators

> Query 1,800+ ETF constituent weights from Form N-PORT, daily 1M–30Y U.S. Treasury yield curves, economic observations, and global exchange session hours under one API key.

Canonical URL: https://quantset.dev/docs/guides/etf-holdings-treasury-yield-api
Full LLM API Contract: https://api.quantset.dev/llms-full.txt

> ## For AI agents
> The QuantSet API is at https://api.quantset.dev. Send the key in the `X-API-Key` header. The sandbox key `mw_demo` needs no signup and reads the sample listings.
> No key yet? An agent can open an account on its own: https://api.quantset.dev/skill.md
> Connect an MCP client to https://api.quantset.dev/mcp. Client setup is at https://api.quantset.dev/agents.md.
> Start with https://api.quantset.dev/llms.txt or read the full reference at https://api.quantset.dev/llms-full.txt. The OpenAPI file is https://api.quantset.dev/openapi.json. Add `.md` to any docs URL to get that page as Markdown.

Multi-asset dashboards and portfolio risk models usually require stitching together separate SEC Form N-PORT XML parsers, issuer ETF CSVs, Treasury.gov XML feeds, and a separate economic data API key. QuantSet normalizes ETF constituent weights, daily Treasury yield curves, macroeconomic series, FX rates, and global market session status under one key.
          

          

## 1. ETF profile, constituents & look-through weights (Form N-PORT)

          

QuantSet ingests SEC Form N-PORT filings (175,000+ constituent rows) alongside daily ETF holdings disclosures across 1,800+ US and international ETFs—mapping constituents back to canonical `us:` and `global:` instrument IDs and ISINs:
          
            
```
curl "https://api.quantset.dev/api/v1/etf-profile?ticker=IVV" -H "X-API-Key: mw_demo"
```

          
          
            
```
curl "https://api.quantset.dev/api/v1/etf-holdings?ticker=IVV&limit=10" -H "X-API-Key: mw_demo"
```

          

          

## 2. Daily U.S. Treasury yield curve (1M to 30Y)

          

Use a personal data key with credits to pull constant-maturity U.S. Treasury yields across the full tenor curve (1M, 3M, 6M, 1Y, 2Y, 5Y, 10Y, 20Y, 30Y) for WACC/CAPM risk-free rates, 2s10s recession spread tracking, and fixed-income dashboards:
          
            
```
curl "https://api.quantset.dev/api/v1/macro/treasury-yields?limit=5" -H "X-API-Key: YOUR_DATA_ONLY_KEY"
```

          

          

## 3. Macroeconomic indicators (CPI, GDP, Fed Funds, Unemployment)

          

Browse available macroeconomic series with `/api/v1/macro/series` and fetch dated observations via `/api/v1/macro/indicators`—ready for JSON or `format=csv` export without maintaining a separate client:
          
            
```
curl "https://api.quantset.dev/api/v1/macro/series?limit=8" -H "X-API-Key: mw_demo"
```

          

          

## 4. Live exchange session status & trading hours

          

Before firing intraday jobs or marking end-of-day NAV, check live market phase (regular open, closed, weekend, or exchange holiday) across global venues:
          
            
```
curl "https://api.quantset.dev/api/v1/market-status" -H "X-API-Key: mw_demo"
```

---

## QuantSet Ecosystem & Integrations (https://quantset.dev/integrations)

- **MCP Clients & 7 Skills:** `npx quantset init` & `npx skills add quantset/skills` (Claude, Claude Code, Cursor, ChatGPT, Codex, Hermes, OpenClaw, Block Goose, Cline, Docker MCP Toolkit — `https://api.quantset.dev/mcp`)
- **Python SDK & Agent Frameworks:** `pip install "quantset[pandas]"` · `from quantset.tools import build_agent_functions, langchain_tools, crewai_tools` (PydanticAI, LangGraph, LangChain, CrewAI, Agno, AutoGen, Google ADK, OpenAI Agents SDK)
- **TypeScript SDK & Vercel AI / Mastra:** `npm install quantset` · `import { createQuantsetTools } from "quantset/tools"` (Node 20+, Bun, Deno, Cloudflare Workers, Vercel Edge)
- **Spreadsheets & Workspaces:** Google Sheets (`=QUANTSET()` & `=IMPORTDATA()`), Microsoft Excel Power Query (`?format=csv`), Notion MCP & n8n/Make webhooks (`https://quantset.dev/docs/guides/google-sheets-excel-notion-stock-templates`)
- **Drop-In Migrations & Machine Payments:** FMP `/stable/*` & `/v3/*` adapter (`https://quantset.dev/docs/switch/fmp`), `yfinance` migration (`https://quantset.dev/docs/switch/yfinance`), autonomous signup (`https://api.quantset.dev/skill.md`), and `x402` Base USDC.
