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 institutional market data—without broken yfinance scrapers, 429 IP bans, or $24,000/yr terminal contracts.

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 · vs. yfinance · 1-Line FMP Migration · 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 Switch Off yfinance & Legacy Feeds

  • Zero 429 Too Many Requests or cookie/crumb bans on AWS & GitHub Actions: Deterministic REST contract with explicit X-RateLimit-Remaining and Retry-After headers.
  • 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.
  • 1-Line Drop-In FMP Migration: Moving off Financial Modeling Prep? Swap the base URL and keep your existing /stable/ or /v3/ paths and camelCase field names unchanged.

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.1

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.1
File Size Uploaded Provenance Actions
quantset-0.1.1.tar.gz 12.7 kB Without provenance Details for quantset-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 22.5 kB

Release files / quantset-0.1.1.tar.gz

Download URL quantset-0.1.1.tar.gz
Size 12.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d8183a1f1f95c26c9bf98aaa522c1f55a6359ad5eda1f4477650216576a735f3
BLAKE2b-256 checksum
How to use checksums
a64dd4d062d6a77e993e2106ba6def6dcc762264cfe96555e3ea630380d64ee2
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.1-py3-none-any.whl

Download URL quantset-0.1.1-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5ddef3c5269993ef6c2a8efa803deea26352e6c31ec325f690e12987cf5daa1
BLAKE2b-256 checksum
How to use checksums
612b9bbb08bbe1ff93159f99671df5c13d32642ecdcb4bd874165d1ad394bc23
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.1

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