Skip to main content

QuantSet — Build AI Hedge Funds, Autonomous Trading Agents & Quant Backtests in Python

Power your AI hedge fund, autonomous equity research agents, systematic backtesters, and multi-asset trading platforms with provenance-stamped institutional market data.

QuantSet gives Python quants, AI agent builders, and trading systems 90,000+ global stocks across 67 countries (64 years of survivorship-checked US daily OHLCV back to 1962; S&P 500 to 1927), 127M+ reconciled SEC EDGAR XBRL facts (10-K, discrete quarterly 10-Q, Form 13F, Form 4 w/ Rule 10b5-1 insider flags, segments & debt walls), 4,899 ETF look-through holdings (175k+ N-PORT constituents), Wall Street consensus estimates & price targets, a 40+ factor point-in-time stock screener, 734 crypto pairs, 42 FX currencies, hourly & 5-minute intraday bars, and live U.S. Treasury / TIPS / FRED macroeconomic curves—all in one fast, typed Python SDK with .to_df() Pandas & Polars support.

Zero signup required to try: works immediately out of the box on benchmark US, London, Tokyo, India, ETF, index, macro, and crypto symbols (mw_demo).

Live Playground · 60-Second Quickstart · SEC EDGAR XBRL Guide · Data Verification · 7 Buyside Agent Skills


Install & Run in 15 Seconds (No API Key Needed to Start)

pip install "quantset[pandas]"   # or: pip install "quantset[polars]" / pip install quantset
import quantset as qs

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

# 2. 64-year split & dividend verified daily OHLCV -> Pandas/Polars DataFrame
prices = qs.prices("NVDA", limit=250).to_df()

# 3. Wall Street forward EPS/Revenue consensus + discrete quarterly SEC 10-Q income statements
est = qs.estimates("NVDA", metric="eps").to_df()
inc = qs.income(["NVDA", "AAPL"], period="quarterly", limit_per_instrument=8).to_df()

Unlock all 90,000+ global symbols, 64-year backtest histories, and full-market factor screening with a $19 Starter Pack or $39/mo Developer plan at quantset.dev/pricing.


What You Can Build With QuantSet

1. Autonomous AI Hedge Funds & Multi-Agent Valuation Desks

Feed LangGraph, CrewAI, AutoGen, or custom Claude/OpenAI agents clean, hallucination-free fundamental context, Wall Street consensus bars, and SEC filing citations:

with qs.Client() as client:
    # One-call AI Agent Context Pack: snapshot multiples, 4Y financials, top 13F hedge-fund holders, peers & news
    context = client.get("context", ticker="us:NVDA")

    # Audit C-suite Form 4 open-market insider buying vs. pre-scheduled Rule 10b5-1 sales + 13F whales
    insiders = client.get("sec/insider-transactions", ticker="us:NVDA", limit=50)
    whales = client.get("institutional-ownership", ticker="us:NVDA", limit=25)

2. Zero-Lookahead Point-in-Time Factor Screening & Backtesting

Screen across 40+ valuation, quality, momentum, and shareholder-yield factors (ROIC, EV/FCF, EV/EBITDA, FFO, SMA-200, net buyback share shrinkage) pinned to an exact historical as_of date so your backtest never suffers from lookahead bias:

with qs.Client() as client:
    # Find high-ROIC compounders actively cannibalizing their own share count
    winners = client.screener(
        min_roic=20,
        max_ev_to_fcf=25,
        max_share_count_change_1y=-2,
        limit=50,
    ).to_df()

    # Pull dividend-reinvested total return, max drawdowns & S&P 500 benchmark alpha
    tr = client.get("total-return", ticker="us:AAPL", limit=250)
    dd = client.get("drawdowns", ticker="us:AAPL", limit=250)

3. Multi-Asset Portfolio Risk & 4,899-ETF Look-Through Engines

Unpack any of 4,899 ETFs down to their exact Form N-PORT underlying stock weights—or flip it around to see every ETF holding a specific stock—plus true USD correlation matrices:

with qs.Client() as client:
    # Which ETFs have the highest portfolio weight in NVDA right now?
    etf_crowding = client.get("etf-exposures", ticker="us:NVDA", limit=25).to_df()

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

Why Quants & AI Teams Build on QuantSet

  • Every US Financial Figure Reconciles to SEC EDGAR XBRL: Carries form (10-K/10-Q), SEC accession, public filing date (available_at for point-in-time backtests), and direct sec.gov highlight citations.
  • True Discrete Quarters (Never YTD 10-Q Cash-Flow Traps): Automatically separates Q2/Q3 year-to-date cash flows into true discrete 3-month quarters (period_basis: "discrete_quarter").
  • 3-Way Evidence-Checked adj_close & Zero Fake Zeros: Splits and dividends are cross-checked against actual price gaps. Unreported line items return None (null)—never silently coerced to 0.
  • Built-in Quant Primitives: Total-return series (dividends reinvested), peak-to-trough drawdowns, multi-asset USD correlation matrices, point-in-time historical P/E, and S&P 500 benchmark alpha out of the box.
  • Deterministic Rate & Snapshot Headers: Explicit X-RateLimit-Remaining, Retry-After, and X-Warehouse-Snapshot-Id headers for reliable production and CI/CD pipelines.

Full Method Reference (qs.* & client.*)

Domain Built-in SDK Methods
Global Quotes, 64Y History & Intraday instruments, quotes, prices, price_history, intraday, snapshot, get("market-session", ticker="NVDA")
40-Factor Stock Screener & Peer Comps screener, fundamentals, get("peers", ticker="NVDA"), get("context", ticker="NVDA")
Quant Returns, Alpha & Correlations get("total-return", ticker="NVDA"), get("drawdowns", ticker="NVDA"), get("analytics/correlations", ...)
Wall Street Consensus, Targets & Earnings estimates, earnings, get("analyst-consensus", ticker="NVDA"), get("analyst-ratings", ticker="NVDA"), get("calendar/earnings")
4,899 ETFs, Splits, Dividends & Buybacks etf_holdings, get("etf-exposures", ticker="NVDA"), corporate_actions
Macro, Treasury/TIPS Curves & 42 FX Pairs treasury_yields, macro_series, macro, fx
SEC XBRL Statements, Segments & Insiders 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")

Snapshot-Pinned Pagination & Error Handling

  • price_history("NVDA", start="2020-01-01", limit=500, max_pages=10) automatically paginates and returns oldest-first ascending bars pinned to one immutable snapshot_id.
  • HTTP errors raise qs.QuantsetError (subclass of httpx.HTTPStatusError) with exc.code, exc.detail, exc.field, exc.candidates, and exc.retry_after.

Metadata

Release files for quantset 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quantset 0.1.3
File Size Uploaded Provenance Actions
quantset-0.1.3.tar.gz 13.1 kB Without provenance Details for quantset-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for quantset 0.1.3
File Interpreter ABI Platform Actions
quantset-0.1.3-py3-none-any.whl Python 3 none any Details for quantset-0.1.3-py3-none-any.whl

Total release size: 23.1 kB

Release files / quantset-0.1.3.tar.gz

Download URL quantset-0.1.3.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ce73e36f5184d7c01578874e13e8708fb61b4f794243be078f0ac0e47dfd04cb
BLAKE2b-256 checksum
How to use checksums
25ef81f27703804fe1069f04983efec5f1e8bef73e513a926365579153bf349f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.4

Release files / quantset-0.1.3-py3-none-any.whl

Download URL quantset-0.1.3-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb2546ca970cb90c5c6a26a4c74ac5d4524b0c14d0fe6da6c90f8f80f14c7536
BLAKE2b-256 checksum
How to use checksums
dc1c6f6950f248023a8da8aa9a31e0cad51bb3b219c121517bf28360f14ce03a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.4

Security for quantset 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page