QuantSet for Python
Put the global stock market inside your agents and code.
| 90,000+ | symbols covered |
| 67 | countries in one schema |
| 36,000+ | companies with financial statements |
| 127M+ | facts from SEC filings since 2000 |
| 4,899 | ETFs you can look through |
| 175,000+ | fund holdings mapped to tickers |
| 42 | currencies with dated FX rates |
Free to start: 250 credits on signup, no card. Sample tickers work with no key.
Questions it can answer
- "Which fast-growing companies are still cheap?"
- "How much of my portfolio is secretly one stock? I hold IVV, QQQ and SMH."
- "Which carmaker is cheapest once you put them in one currency?"
- "Which companies are growing revenue 20%+ with 15%+ free cash flow margins and still trade under 15x EV/FCF?"
- "Are Nvidia insiders selling into the rally, and is it on a pre-arranged 10b5-1 plan?"
- "Who is buying back the most stock while trading at the cheapest multiples?"
- "Where in the AI supply chain is free cash flow growing fastest?"
Live API Reference · Quickstart · How We Verify Data · Global Markets · AI Agents & MCP
Install & Run in 15 Seconds
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(["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 across67countries 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 and127M+facts from SEC filings since 2000 (10-K, discrete10-Q,Form 13Finstitutional holdings,Form 4insider trades with Rule 10b5-1 flags, product/geographic segments, debt maturity walls, and8-Kguidance).4,899ETFs 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_ofpoint-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.
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
- Filings you can cite: US statements reconcile to SEC XBRL filings and carry
form,accession,available_at(public filing date), and acitation_urlhighlighting the exact line onsec.gov. - Null means null, never zero: Missing or unreported lines return
None(null)—never a silent0that distorts margins or valuation averages. - Adjustments with evidence: Adjusted closes pass a three-way check against raw closes, split continuity, and verified cash dividends (
status: "evidence-verified"). - 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. - Snapshots that hold still: Every response is pinned to
X-Warehouse-Snapshot-Idso 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") |
AI Agent Framework Toolkits (LangChain, LangGraph, PydanticAI, CrewAI, AutoGen)
quantset.tools ships 8 ready-made, typed agent tools covering quotes, prices, 1-call research context, SEC statements, consensus estimates, 4,899-ETF look-throughs, insider/13F disclosures, and 40-factor screening:
from quantset.tools import build_agent_functions, langchain_tools, crewai_tools, openai_tool_schemas
# 1. PydanticAI / AutoGen / OpenAI Agents SDK (zero extra dependencies)
from pydantic_ai import Agent
agent = Agent("openai:gpt-4o", tools=build_agent_functions())
# 2. LangChain / LangGraph (`pip install "quantset[langchain]"`)
tools = langchain_tools()
# 3. CrewAI (`pip install "quantset[crewai]"`)
crew_tools = crewai_tools()
Pagination & Error Handling
price_history("NVDA", start="2020-01-01", limit=500, max_pages=10)assembles oldest-first ascending history pinned to a singlesnapshot_id.- HTTP errors raise
qs.QuantsetError(subclass ofhttpx.HTTPStatusError) withexc.code,exc.detail,exc.field,exc.candidates, andexc.retry_after.
Links
- Homepage & Pricing: https://quantset.dev
- Quickstart: https://quantset.dev/docs/quickstart
- All Endpoints: https://quantset.dev/docs/api
- 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
- 7 Research Skills (
quantset/skills): https://github.com/quantset/skills - Full LLM Contract (
llms-full.txt): https://api.quantset.dev/llms-full.txt
Metadata
Release files for quantset 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| quantset-0.1.8.tar.gz | 14.9 kB | Without provenance | Details for quantset-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| quantset-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for quantset-0.1.8-py3-none-any.whl |
Total release size: 27.5 kB
Release files / quantset-0.1.8.tar.gz
| Download URL | quantset-0.1.8.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0bee01049a10f1b29f1b859c2d8f068a0c68a9aa0dfe60e4fe004d743b81bde6
|
|
BLAKE2b-256 checksum How to use checksums |
74b18c1445d82c6934f22fb13739905fdffb13a133baa29bac90186f34dfe016
|
| 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.8-py3-none-any.whl
| Download URL | quantset-0.1.8-py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6c7a199bc099e2a71e42c3763d0119a011f4628f27dc4bd2b13e5b4ca5441440
|
|
BLAKE2b-256 checksum How to use checksums |
cd7d76328f90eab638a5430f1959f3054786157234525596b5e6154df1d175e3
|
| 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.8
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.