Skip to main content

QuantSet — The Institutional Python SDK for Global Stocks, SEC EDGAR XBRL, 4,899 ETFs, Estimates & Macro

Stop stitching together broken yfinance scrapers, 429 Too Many Requests IP bans, YTD 10-Q cash-flow traps, and overpriced legacy data feeds.

QuantSet gives Python quants, backtests, and AI agents 90,000+ global listings across 67 countries (US daily OHLCV back to 1962, S&P 500 back to 1927), 127M+ reconciled SEC EDGAR XBRL facts (10-K, discrete quarterly 10-Q, Form 13F, Form 4 w/ Rule 10b5-1 flags, segments & debt walls), 4,899 ETF look-through holdings (175k+ N-PORT rows), Wall Street consensus estimates, a 40+ factor point-in-time stock screener, 734 crypto pairs, 42 ECB FX currencies, hourly & 5-minute intraday bars, multi-asset correlation & drawdown analytics, and live U.S. Treasury/TIPS/FRED macroeconomic curves—all behind one fast, typed Python client with .to_df() Pandas/Polars support and built-in credit-budget controls.

Zero signup required to try: every install 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 · Claude & Cursor MCP


Credit estimates and receipts

from quantset import Client

with Client(max_credits_per_request=10, workflow_id="daily-research") as client:
    planned = {"ticker": "NVDA", "limit": 251}
    quote = client.estimate_credit_cost("GET", "/prices", params=planned)
    read = client.get_with_receipt("prices", max_credits=quote["maximum_credits"], **planned)
    print(read.receipt.credit_cost, read.receipt.credits_remaining)
    history = client.price_history("NVDA", limit=250, max_pages=5, credit_budget=5)

rate_card() and estimate_credit_cost() are free. The price ceiling is enforced on the server. A budgeted paginated read sends the remaining budget on each call and leaves next_cursor when stopped early. Use page_receipts to reconcile combined history pages and QuantsetError.receipt to inspect a refused request.

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

# Five daily bars in one price request
df = qs.prices("NVDA", limit=5).to_df()

# Batch live/daily quotes across US stocks, London, Tokyo & crypto in 1 request
quotes = qs.quotes(["NVDA", "AAPL", "global:SHEL.L", "global:1301.T", "crypto:BTCUSDT"]).to_df()

# Wall Street forward EPS/revenue consensus + quarterly revenue/cash-flow fundamentals
est = qs.estimates("NVDA", metric="eps").to_df()
inc = qs.income(["AAPL"], period="quarterly", limit_per_instrument=8).to_df()

Ready for the full 52,000+ symbol universe and market-wide stock screening? Set QUANTSET_API_KEY (choose a prepaid pack or a monthly credit pool; consult the published rate card for batch and history costs). Get a full key →


Why Quants & Builders Move Off yfinance & Fragmented APIs

  • Zero 429 Too Many Requests or cookie/crumb bans on AWS & GitHub Actions: Clean REST contract with explicit X-RateLimit-Remaining and Retry-After headers.
  • Built-in quant primitives (not just raw bars): 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.
  • 40+ factor institutional screener: Filter 14,000+ US listings by ROIC, EV/EBITDA, EV/FCF, FFO (for REITs), SMA-50/200, dividend-increase streaks, and net buyback share-count shrinkage.
  • Reverse ETF look-through (4,899 funds): See every stock inside an ETF or reverse-query which ETFs hold a stock and at what weight (etf-exposures).
  • Evidence-checked adj_close & zero fake zeros: Splits and dividends are cross-checked against actual price gaps. Unverified or missing values return None (null)—never silently coerced to 0.
  • 1-line drop-in FMP compatibility: Migrating an existing Financial Modeling Prep codebase? Swap the base URL and keep your /stable/ or /v3/ paths unchanged.

Everything Under One Client

Pass a catalog ticker such as NVDA or 7203.T. Use canonical IDs such as global:SHEL.L, crypto:BTCUSDT or index:SPX to select an exact listing. Ambiguous tickers return canonical candidates.

What you're building Built-in methods (qs.* & client.*)
Prices, Intraday & Live Sessions instruments, quotes, prices, intraday, snapshot, get("market-session", ticker="NVDA")
40-Factor Stock Screener & Peers screener, fundamentals, get("peers", ticker="NVDA")
Quant Returns, Alpha & Correlations get("total-return", ticker="NVDA"), get("drawdowns", ticker="NVDA"), get("analytics/correlations", ...)
Wall Street Estimates & Calendars estimates, earnings, get("analyst-ratings", ticker="NVDA"), get("calendar/earnings")
ETFs, Splits, Dividends & Buybacks etf_holdings, get("etf-exposures", ticker="NVDA"), corporate_actions
Macro, Yield Curves (TIPS/2s10s) & FX treasury_yields, macro_series, macro, fx
Deep Financials, Segments & Insiders income, balance_sheet, cash_flow, sec_facts, get("segments", ticker="NVDA"), get("insider-activity", ticker="NVDA")
with qs.Client() as client:
    # Multi-asset USD correlation & volatility matrix
    corr = client.get("analytics/correlations", tickers=["NVDA", "AAPL", "crypto:BTCUSDT"])

    # U.S. Treasury curve (1M–30Y + 2s10s spread + TIPS real yields) & 42 ECB FX rates
    curve = client.treasury_yields(limit=5)
    fx = client.fx("EUR,GBP,JPY", latest_only=True)

    # Snapshot-pinned factor screen: high-ROIC net share-cannibals (full key)
    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))

Pagination and errors

prices() reads one page. To assemble ascending history within a request budget, call price_history("NVDA", start="2024-01-01", limit=500, max_pages=4). If the budget ends before the data, the result retains next_cursor and snapshot_id.

  • Multi-page reads stay pinned to snapshot_id so nightly pipeline updates never corrupt a cross-sectional scan mid-loop.
  • HTTP errors raise qs.QuantsetError (subclass of httpx.HTTPStatusError) with exc.code, exc.detail, exc.field, exc.candidates and exc.retry_after. For snapshot_changed, discard the partial result and restart at page one.

Metadata

Release files for quantset 0.1.0

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.0
File Size Uploaded Provenance Actions
quantset-0.1.0.tar.gz 12.5 kB Without provenance Details for quantset-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 22.2 kB

Release files / quantset-0.1.0.tar.gz

Download URL quantset-0.1.0.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2a57f87592b84e10b48d13cada084a326bd1152448cb9fbf15054320f0fc03e9
BLAKE2b-256 checksum
How to use checksums
1fd9471d63a01ea076055e9cd1db5a1d10577edd6e079254eb2587d25ba1658f
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.0-py3-none-any.whl

Download URL quantset-0.1.0-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e4404b66ac722e0cdfea4ee70e1eaad0c8f88e6f3eda714e05b8a8ac71cd90c2
BLAKE2b-256 checksum
How to use checksums
bed508bc6c701eeaee924540918d562d233e120a0f37d9d812f94e5aabbe8831
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.0

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