Metadata-Version: 2.5
Name: openbb-quantset
Version: 0.1.0
Summary: QuantSet data provider for OpenBB: prices in 67 countries, financials for 36,000+ companies, SEC filings, ETF look-through, estimates, options and macro.
Project-URL: Homepage, https://quantset.dev
Project-URL: Documentation, https://quantset.dev/docs/quickstart
Project-URL: Get a free key, https://quantset.dev/signup
Project-URL: Repository, https://github.com/quantset/openbb-quantset
Author-email: QuantSet <hello@quantset.dev>
License: MIT
Keywords: etf-holdings,fundamental-data,market-data,openbb,openbb-provider,options,sec-edgar,stock-market-api,yfinance-alternative
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Financial and Insurance Industry
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Office/Business :: Financial :: Investment
Requires-Python: <4,>=3.11
Requires-Dist: openbb-core[pandas]>=2.0.1
Provides-Extra: test
Requires-Dist: pytest>=8; extra == 'test'
Description-Content-Type: text/markdown

# openbb-quantset

QuantSet as a data provider for [OpenBB](https://openbb.co). One install gives OpenBB prices in 67 countries, financial statements for 36,000+ companies, SEC filings, ETF look-through for 4,899 funds, analyst estimates, options and macro, all from one key.

Built for OpenBB 5 (`openbb-core` 2.x).

```bash
pip install openbb-quantset
```

## Thirty seconds to data

It works with no key on the sample listings (AAPL, MSFT, NVDA, IVV, SPX, BTCUSDT and three international listings), so you can try it before signing up.

```python
from openbb import obb

obb.equity.price.historical("AAPL", start_date="2015-01-01", provider="quantset").to_df()
obb.equity.fundamental.income("NVDA", period="quarter", limit=8, provider="quantset").to_df()
obb.etf.holdings("IVV", provider="quantset").to_df()
```

For every listing, get a free key at <https://quantset.dev/signup> and set it once:

```python
obb.user.credentials.quantset_api_key = "YOUR_KEY"
```

or export `QUANTSET_API_KEY`. New accounts start with free credits and no card.

## What it covers

Every command below is a standard OpenBB command. Add `provider="quantset"`.

| Area | Commands |
|---|---|
| Prices | `equity.price.historical` (daily and hourly), `equity.price.quote`, `equity.price.performance`, `equity.market_snapshots`, `equity.historical_market_cap`, `etf.historical`, `index.price.historical`, `crypto.price.historical`, `currency.price.historical` |
| Search and profile | `equity.search`, `equity.profile`, `equity.compare.peers`, `equity.screener`, `etf.search`, `crypto.search` |
| Financials | `equity.fundamental.income`, `.balance`, `.cash`, `.ratios`, `.metrics`, `equity.ownership.share_statistics` |
| Estimates and earnings | `equity.estimates.forward_eps`, `.forward_sales`, `.consensus`, `equity.fundamental.historical_eps`, `equity.calendar.earnings` |
| Dividends and splits | `equity.fundamental.dividends`, `.historical_splits`, `equity.calendar.dividend`, `.splits` |
| Ownership | `equity.ownership.insider_trading`, `.institutional`, `.government_trades`, `equity.shorts.short_volume` |
| Funds | `etf.info`, `etf.holdings`, `etf.equity_exposure`, `etf.price_performance` |
| Filings and news | `equity.fundamental.filings`, `news.company`, `news.world` |
| Options and rates | `derivatives.options.chains`, `fixedincome.government.treasury_rates`, `.yield_curve` |

### Only on QuantSet

Datasets OpenBB has no standard command for live under `obb.quantset`. Pass arguments by name.

| Command | What you get |
|---|---|
| `obb.quantset.filing_search(symbol="NVDA", query="data center")` | Passages from 10-K, 10-Q, 8-K and proxy filings, each with a link that opens the filing at the passage |
| `obb.quantset.filing_sections(symbol="NVDA", form="10-K", item="1A")` | A filing section, such as Risk Factors, as plain text |
| `obb.quantset.guidance(symbol="NVDA")` | Forward guidance from earnings releases, with the sentence it came from |
| `obb.quantset.drawdowns(symbol="AAPL", start_date="2020-01-01")` | Fall from the running peak, day by day |
| `obb.quantset.total_return(symbol="AAPL")` | A total return series with dividends reinvested |
| `obb.quantset.correlations(symbol="NVDA,AAPL,crypto:BTCUSDT")` | Correlation of daily returns across stocks, ETFs, indices and crypto |
| `obb.quantset.historical_pe(symbol="AAPL")` | Trailing P/E through time, using only earnings filed by each day |
| `obb.quantset.revenue_segments(symbol="NVDA")` | Revenue by business segment |
| `obb.quantset.pay_versus_performance(symbol="NVDA")` | CEO pay against shareholder return |
| `obb.quantset.insider_activity(symbol="NVDA")` | Count of insider buys and sells |
| `obb.quantset.analyst_ratings(symbol="NVDA")` | Analyst rank and factor grades over time |
| `obb.quantset.manager_portfolio(manager="Berkshire")` | A manager's 13F portfolio |
| `obb.quantset.ipo_filings()` | Companies that have filed to go public |
| `obb.quantset.central_bank_rates()` | Policy rates of the major central banks |
| `obb.quantset.macro_indicators(symbol="UNRATE,CPIAUCSL")` | History for any economic series |
| `obb.quantset.macro_search(query="rate")` | Find an economic series |
| `obb.quantset.employees(symbol="NVDA")` | Headcount by year |

## Things worth knowing

**Symbols.** US tickers work as they are (`AAPL`). Listings elsewhere use their exchange suffix (`SHEL.L`, `7203.T`). When a ticker matches more than one listing, the provider picks the one the command implies, and you can always be exact with a prefix: `us:AAPL`, `global:SHEL.L`, `index:SPX`, `crypto:BTCUSDT`.

**No look-ahead.** Statements, ratios, estimates, institutional ownership and ETF holdings accept `as_of`. You get only what had been published by that date, and statement rows carry their filing date and SEC accession number.

**Adjusted prices.** Each daily bar has the observed `close`, a `split_adj_close` and an `adj_close` that also reflects cash dividends.

**Percent fields** follow OpenBB's convention: a fraction, so `0.25` means 25%. Screener filters are the one exception and are written in percent, because that is how you would say them: `min_roic=20`.

**Many symbols at once.** Quotes and statements take up to 100 symbols in a single request. Other commands run one request per symbol side by side, and one bad symbol is reported as a warning without failing the rest.

**Errors tell you what to do.** If the sandbox key cannot read a listing, or a request needs credits, the message says so and links to the fix.

## Develop

```bash
pip install -e ".[test]"
pytest
```

The tests run with no network and no key, against responses in `tests/fixtures`.

## License

MIT
