Metadata-Version: 2.5
Name: quantset
Version: 0.1.7
Summary: Free to try (mw_demo + 250 free credits). 90,000+ symbols & 52,000+ stocks across 67 countries, 734 crypto pairs, 42 FX currencies, 36,000+ companies with financial statements, 127M+ SEC filing facts, 4,899 ETFs you can look through, consensus estimates & 40-factor screening.
Project-URL: Homepage, https://quantset.dev
Project-URL: Pricing and Sandbox, https://quantset.dev/#pricing
Project-URL: Documentation, https://quantset.dev/docs/quickstart
Project-URL: Live API Playground, https://quantset.dev/docs/api
Project-URL: SEC EDGAR XBRL Guide, https://quantset.dev/docs/guides/sec-edgar-xbrl-api
Project-URL: 13F and Form 4 Guide, https://quantset.dev/docs/guides/13f-insider-float-api
Project-URL: Analyst Estimates Guide, https://quantset.dev/docs/guides/analyst-estimates-upgrades-api
Project-URL: ETF and Treasury Guide, https://quantset.dev/docs/guides/etf-holdings-treasury-yield-api
Project-URL: Global Markets Guide, https://quantset.dev/docs/global-markets
Project-URL: Data Verification, https://quantset.dev/docs/data-quality
Project-URL: MCP for Claude and Cursor, https://quantset.dev/docs/agents
Project-URL: Repository, https://github.com/quantset/quantset-python
Project-URL: Issues, https://github.com/quantset/quantset-python/issues
Author-email: QuantSet <hello@quantset.dev>
License: MIT
Keywords: ai-hedge-fund,analyst-estimates,backtesting,crypto-api,dcf-valuation,earnings-calendar,etf-holdings,financial-statements-api,forex-api,form-13f,fundamental-data,insider-trading-form-4,market-data,mcp,pandas,polars,quantitative-finance,sec-edgar-xbrl,stock-market-api,stock-screener,trading-agents,treasury-yields
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Financial and Insurance Industry
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Office/Business :: Financial :: Investment
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: httpx<1,>=0.27
Provides-Extra: pandas
Requires-Dist: pandas>=2; extra == 'pandas'
Provides-Extra: polars
Requires-Dist: polars>=1; extra == 'polars'
Provides-Extra: test
Requires-Dist: pytest>=8; extra == 'test'
Description-Content-Type: text/markdown

# QuantSet for Python — Put the Global Stock Market Inside Your Agents and Code

**`90,000+` symbols** and **`52,000+` stocks across `67` countries** (US daily history back to **1962**; S&P 500 to **1927**), **`734` crypto pairs**, **`42` FX currencies**, **`36,000+` companies with standardized financial statements**, **`127M+` facts from SEC filings back to 2000**, **`4,899` ETFs you can look through (`175,000+` fund holdings mapped to tickers)**, consensus estimates, 40-factor stock screening, and U.S. Treasury/FRED macro curves—in one typed Python client with `.to_df()` Pandas and Polars support.

Works **immediately out of the box with zero signup** on sample US, London, Tokyo, Mumbai, ETF, index, macro, and crypto listings (`mw_demo`), and includes **250 free credits** across the full 90,000+ symbol warehouse when you claim a key at **[quantset.dev/signup](https://quantset.dev/signup)** (no credit card required).

**[Live API Reference](https://quantset.dev/docs/api)** · **[Quickstart](https://quantset.dev/docs/quickstart)** · **[How We Verify Data](https://quantset.dev/docs/data-quality)** · **[Global Markets](https://quantset.dev/docs/global-markets)** · **[AI Agents & MCP](https://quantset.dev/docs/agents)**

---

## Install & Run in 15 Seconds

```sh
pip install "quantset[pandas]"   # or: pip install "quantset[polars]" / pip install quantset
```

```python
import quantset as qs

# 1. Batch quotes across New York, London, Tokyo & Crypto in one call
quotes = qs.quotes(["us:NVDA", "us:AAPL", "global:SHEL.L", "global:1301.T", "crypto:BTCUSDT"]).to_df()

# 2. Daily OHLCV with evidence-verified split & dividend adjustments
prices = qs.prices("NVDA", limit=250).to_df()

# 3. Reconciled SEC XBRL discrete quarterly statements + Wall Street consensus estimates
inc = qs.income(["NVDA", "AAPL"], period="quarterly", limit_per_instrument=8).to_df()
est = qs.estimates("NVDA", metric="eps").to_df()
```

---

## Institutional Depth, Global Breadth

- **`90,000+` symbols across `67` countries** in one schema and one set of canonical IDs (`us:NVDA`, `global:7203.T`, `global:SHEL.L`, `crypto:BTCUSDT`, `index:SPX`).
- **`36,000+` companies with financial statements** and **`127M+` facts from SEC filings since 2000** (`10-K`, discrete `10-Q`, `Form 13F` institutional holdings, `Form 4` insider trades with Rule 10b5-1 flags, product/geographic segments, debt maturity walls, and `8-K` guidance).
- **`4,899` ETFs you can look through (`175,000+` holdings mapped to tickers):** Unpack any fund to exact weights (`etf_holdings`), or flip it around and find every fund that holds a stock (`get("etf-exposures", ticker="us:NVDA")`).
- **40+ factor point-in-time screener & quant primitives:** Screen by `ROIC`, `EV/FCF`, `EV/EBITDA`, `FFO`, `SMA-200`, and net buyback share shrinkage (`as_of` point-in-time supported), plus dividend-reinvested total return, peak-to-trough drawdowns, and multi-asset USD correlation matrices.
- **Macro & 42 FX currencies:** Daily 1M–30Y U.S. Treasury and TIPS yield curves, CPI/Labor/GDP packs, 10 central bank policy rates, 82 FRED series, and dated FX rates.

```python
with qs.Client() as client:
    # One-call research context bundle: snapshot multiples, 4Y financials, top 13F holders, peers & news
    ctx = client.get("context", ticker="us:NVDA")

    # Reverse ETF look-through: every ETF holding NVDA ordered by portfolio weight
    funds = client.get("etf-exposures", ticker="us:NVDA", limit=25).to_df()

    # Cross-asset USD correlation & volatility matrix
    corr = client.get("analytics/correlations", tickers=["us:NVDA", "global:SHEL.L", "crypto:BTCUSDT"])

    # Snapshot-pinned 40-factor screen: high-ROIC compounders shrinking their share count
    for page in client.paginate("screener", max_pages=3, min_roic=20, max_share_count_change_1y=-2, limit=100):
        print(page.snapshot_id, len(page.data))
```

---

## Checked Before It Reaches Your Code

1. **Filings you can cite:** US statements reconcile to SEC XBRL filings and carry `form`, `accession`, `available_at` (public filing date), and a `citation_url` highlighting the exact line on `sec.gov`.
2. **Null means null, never zero:** Missing or unreported lines return `None` (`null`)—never a silent `0` that distorts margins or valuation averages.
3. **Adjustments with evidence:** Adjusted closes pass a three-way check against raw closes, split continuity, and verified cash dividends (`status: "evidence-verified"`).
4. **True quarters and native units:** Quarterly cash flows are separated from fiscal year-to-date figures (`period_basis: "discrete_quarter"`), and every price states its currency, pence (`GBp`) included.
5. **Snapshots that hold still:** Every response is pinned to `X-Warehouse-Snapshot-Id` so multi-page reads never shift mid-loop.

---

## Built-In Methods (`qs.*` & `client.*`)

| Dataset Group | Methods |
| --- | --- |
| **Prices, Intraday & Sessions** | `instruments`, `quotes`, `prices`, `price_history`, `intraday`, `snapshot`, `get("market-session", ticker="NVDA")` |
| **Fundamentals, Screening & Peers** | `screener`, `fundamentals`, `get("financial-metrics", ticker="NVDA")`, `get("peers", ticker="NVDA")`, `get("context", ticker="NVDA")` |
| **Returns, Risk & Correlations** | `get("returns", ticker="NVDA")`, `get("total-return", ticker="NVDA")`, `get("drawdowns", ticker="NVDA")`, `get("analytics/correlations", ...)` |
| **Estimates, Consensus & Calendars** | `estimates`, `earnings`, `get("analyst-consensus", ticker="NVDA")`, `get("analyst-ratings", ticker="NVDA")`, `get("calendar/earnings")` |
| **4,899 ETFs & Corporate Actions** | `etf_holdings`, `get("etf-profile", ticker="IVV")`, `get("etf-exposures", ticker="NVDA")`, `corporate_actions` |
| **Macro, Treasury Curves & FX** | `treasury_yields`, `macro_series`, `macro`, `fx` |
| **SEC Filings, Segments & Ownership** | `income`, `balance_sheet`, `cash_flow`, `sec_facts`, `get("segments", ticker="NVDA")`, `get("debt-maturities", ticker="NVDA")`, `get("insider-activity", ticker="NVDA")`, `get("institutional-ownership", ticker="NVDA")` |

## Pagination & Error Handling

- `price_history("NVDA", start="2020-01-01", limit=500, max_pages=10)` assembles oldest-first ascending history pinned to a single `snapshot_id`.
- HTTP errors raise `qs.QuantsetError` (subclass of `httpx.HTTPStatusError`) with `exc.code`, `exc.detail`, `exc.field`, `exc.candidates`, and `exc.retry_after`.

## Links

- **Homepage & Pricing:** [https://quantset.dev](https://quantset.dev)
- **Quickstart:** [https://quantset.dev/docs/quickstart](https://quantset.dev/docs/quickstart)
- **All Endpoints:** [https://quantset.dev/docs/api](https://quantset.dev/docs/api)
- **How We Verify Data:** [https://quantset.dev/docs/data-quality](https://quantset.dev/docs/data-quality)
- **Global Markets:** [https://quantset.dev/docs/global-markets](https://quantset.dev/docs/global-markets)
- **AI Agents & MCP:** [https://quantset.dev/docs/agents](https://quantset.dev/docs/agents)
- **7 Research Skills (`quantset/skills`):** [https://github.com/quantset/skills](https://github.com/quantset/skills)
- **Full LLM Contract (`llms-full.txt`):** [https://api.quantset.dev/llms-full.txt](https://api.quantset.dev/llms-full.txt)
