Files
OpenBB/openbb_platform/extensions/econometrics
dlee-bq f9b667816a fix(deps): resolve Dependabot security alerts (#7838)
* fix(deps): bump tornado, opentelemetry-api, soupsieve, dnspython, joserfc in uv.lock files

- tornado 6.5.10 -> 6.6.1
- opentelemetry-api 1.45.1 -> 1.45.2
- soupsieve 3.0.3 -> 4.1 (Python >= 3.11.5)
- dnspython 2.9.0 -> 2.9.2
- joserfc 1.7.5 -> 1.7.6

Signed-off-by: dlee-bq <325002271+dlee-bq@users.noreply.github.com>

* fix(desktop): bump glob, minimatch, seroval

- glob 13.0.6 -> 14.0.6
- minimatch 10.2.6 -> 11.0.8
- seroval 1.6.9 -> 1.8.1
- raise the package.json floors to the patched versions

Signed-off-by: dlee-bq <325002271+dlee-bq@users.noreply.github.com>

* fix(desktop): bump zip to 9.5.1 via tauri-cli and tauri-plugin-updater

- tauri-cli 2.12.2 -> 2.12.4
- tauri-plugin-updater 2.14.0 -> 2.14.1
- zip 2.4.2, 4.6.1, 8.6.0 -> 9.5.1

Signed-off-by: dlee-bq <325002271+dlee-bq@users.noreply.github.com>

* fix(deps): raise requires-python to >=3.11.5

- soupsieve 3.x and 4.x need Python >= 3.11.5; the 2.10 fork stayed vulnerable for 3.11.0-3.11.4
- 39 pyproject.toml files (38 projects + cookiecutter template)
- relock all 38 uv.lock files: soupsieve 2.10 fork gone, tomli and async-timeout dropped

Signed-off-by: dlee-bq <325002271+dlee-bq@users.noreply.github.com>

---------

Signed-off-by: dlee-bq <325002271+dlee-bq@users.noreply.github.com>
Co-authored-by: dlee-bq <325002271+dlee-bq@users.noreply.github.com>
2026-11-28 20:39:03 +00:00
..
2026-09-29 14:45:53 +00:00
2026-09-29 14:45:53 +00:00
2026-09-29 14:45:53 +00:00
2026-09-29 14:45:53 +00:00

OpenBB Econometrics Extension

This package adds the openbb-econometrics extension to the Open Data Platform by OpenBB.

It provides a toolkit of econometrics commands — regression, regression diagnostics, stationarity and cointegration tests, Granger causality, GARCH volatility modelling, and panel-data estimators — that operate on any tabular dataset passed in as data.

Installation

Install from PyPI with:

pip install openbb-econometrics

Then build the Python static assets by running:

openbb-build

Quick Start

Every command is a POST endpoint that takes a data payload (a list of records, e.g. the .results of another OpenBB command) plus typed parameters, and returns an OBBject.

from openbb import obb

prices = obb.equity.price.historical(
    symbol="AAPL", start_date="2023-01-01", provider="yfinance"
).results

# Coefficient table of an OLS regression.
obb.econometrics.ols_regression(
    data=prices, y_column="close", x_columns=["open", "high", "low"]
)

# Augmented Dickey-Fuller stationarity test.
obb.econometrics.unit_root(data=prices, column="close")

# GARCH(1, 1) conditional volatility.
obb.econometrics.garch(data=prices, column="close")

To use the extension over HTTP, start the API server with openbb-api and POST to /api/v1/econometrics/<command>.

Coverage

All commands are available under obb.econometrics.*.

Tools

  • correlation_matrix — correlation matrix of a dataset
  • summary_statistics — per-column descriptive statistics

Regression

  • ols_regression — Ordinary Least Squares coefficient table
  • ols_regression_summary — OLS goodness-of-fit summary

Diagnostics

  • autocorrelation — Durbin-Watson autocorrelation test
  • residual_autocorrelation — Breusch-Godfrey residual autocorrelation test
  • heteroskedasticity — Breusch-Pagan and White heteroskedasticity tests
  • normality — Jarque-Bera normality test on residuals
  • variance_inflation_factor — multicollinearity (VIF) test

Time Series

  • unit_root — Augmented Dickey-Fuller unit root test
  • kpss — KPSS stationarity test
  • cointegration — Engle-Granger pairwise cointegration test
  • cointegration_johansen — Johansen multivariate cointegration test
  • causality — Granger causality test
  • garch — GARCH(p, q) conditional volatility model

Panel

  • panel_random_effects — one-way Random Effects model
  • panel_between — Between estimator
  • panel_pooled — Pooled OLS estimator
  • panel_fixed — Fixed Effects estimator
  • panel_first_difference — First-Difference estimator
  • panel_fmac — Fama-MacBeth estimator

See the full docs here