openbb-riskmodels
OpenBB Platform commands for RiskModels. Audience: a notebook that already uses from openbb import obb. This package is not the Workspace app at https://riskmodels.app/openbb (widgets, dashboards, Analyst copilot).
Install is free. Data access uses a RiskModels API key and the existing capability billing on riskmodels-py.
Homebrew Python is PEP 668-managed; do not pip install into it. From the RiskModels_API repo root, use a venv (gitignored as .venv/) and call its binaries directly so a shell python alias cannot leak in:
cd openbb-riskmodels
python3.12 -m venv .venv
.venv/bin/pip install -e ../sdk -e .
.venv/bin/openbb-build
.venv/bin/python -c "from openbb import obb; print(obb.risk_models)"
openbb-build is the console script from openbb-core. After a rebuild, from openbb import obb exposes obb.risk_models.decompose, decompose_historical, and fundamentals.
Set RISKMODELS_API_KEY, or save it as riskmodels_api_key in OpenBB's credential store (obb.user.credentials.riskmodels_api_key).
Commands
from openbb import obb
obb.risk_models.decompose("NVDA")
obb.risk_models.decompose_historical("CRM", years=2)
obb.risk_models.fundamentals("NVDA", as_of="2024-12-31", periods=8)
decompose— latest ERM3 market / sector / subsector / residual snapshot, hedge map, recommended hedge level. Residual is unexplained variance.decompose_historical— daily explained-risk and hedge-ratio series (GET /l3-decomposition).fundamentals— point-in-time quarterly derived fundamentals (GET /fundamentals/{ticker}). Rows keepfiled_date,filed_date_source, andsec_facts. Panel-wide: point-in-time normalized fundamentals derived from SEC filings and licensed sources.SEC-sourcedapplies only to the four SEC-primary concepts and quantities computed only from them.
These commands wrap riskmodels-py (>=0.4.0). They do not implement PIT logic or hedge-map math.
Not in this package
Workspace widgets, the marketplace listing, WACC sensitivity grid, portfolio, rankings, tearsheet, and the copilot. Those live on https://riskmodels.app/openbb or on RiskModelsClient directly. Users who are not already on OpenBB Platform should use riskmodels-py.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openbb_riskmodels-0.1.0.tar.gz.
File metadata
- Download URL: openbb_riskmodels-0.1.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
518cd9871d59b8d533d36d18a1cb456271c3756751be176e2c0f78f016bfd14d
|
|
| MD5 |
a4227794f8d92d3f7496499a6ed3418d
|
|
| BLAKE2b-256 |
6ba0d7d639ee12d427088c7b32c97fc504fe101b95d73d1f80df0b061f35e6dc
|
File details
Details for the file openbb_riskmodels-0.1.0-py3-none-any.whl.
File metadata
- Download URL: openbb_riskmodels-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c931e894528fb4f9cb0311a23761e2eb12454a74554cacfd919c67288909c90
|
|
| MD5 |
ebc1738077fc4aa7f0e41bd55282aa4b
|
|
| BLAKE2b-256 |
4dd9bb2505d5e7a15256ae35014bbc342431448cee9e85c8b2d05893e21fdd47
|