Skip to main content

Toolkit Extensions

OpenBB Toolkit Extensions expand the Platform with functions for manipulating data and preparing it for display. The Core Platform installation does not install any toolkit extensions. The table below is the current list of toolkit extensions.

Extension NameDescriptionInstallation CommandCore/CommunityRouter Path
openbb-chartingRest API charting service and Plotly library.pip install openbb-chartingCommunityN/A
openbb-devtoolsAggregates dependencies that facilitate a nice development experience for OpenBB.pip install openbb-devtoolsN/A
openbb-econometricsEconometrics models for the Python interface only.pip install openbb-econometricsCommunityobb.econometrics
openbb-quantitativeFunctions for performing quantitative analysis.pip install openbb-quantitativeCommunityobb.quantitative
openbb-technicalFunctions for performing technical analysis.pip install openbb-technicalCommunityobb.technical

The sections below outline any specific installation considerations for the extension.

Charting

pip install openbb-charting

The OpenBB Charting Extension supplies charting infrastructure and services to the OpenBB Platform. Figure objects are served via REST API or Python Client. It utilizes PyWry for handling the display of interactive charts and tables in a separate window, with a Plotly library.

Functions with dedicated views return figures to the chart attribute of the OBBject response object. They are displayed with the class method, show().

tip

The openbb-charting is an OBBject extension, which means the general functionality is exposed in every command result.

The following packages are dependencies of the openbb-charting extension:

  • scipy
  • plotly
  • statsmodels
  • reportlab
  • pywry
  • svglib
  • nbformat
  • pandas-ta

For more information check the documentation of the openbb-charting extension.

Devtools

pip install openbb-devtools

Please refer to the following PyPI distributed package.

This Python package, openbb-devtools, is designed for OpenBB Platform Developers and contains a range of dependencies essential for robust and efficient software development.

These dependencies cater to various aspects like code formatting, security analysis, type checking, testing, and kernel management.

The inclusion of these packages ensures that the development process is streamlined, the code quality is maintained, and the software is secure and reliable.

Included dependencies:

  • ruff: A fast Python linter focused on performance and simplicity.
  • pylint: A tool that checks for errors in Python code, enforces a coding standard, and looks for code smells.
  • mypy: A static type checker for Python, helping catch type errors during development.
  • pydocstyle: A linter for Python docstrings to ensure they meet certain style requirements.
  • black: An uncompromising Python code formatter, ensuring consistent code style.
  • bandit: A tool designed to find common security issues in Python code.
  • pre-commit: Manages and maintains pre-commit hooks that run checks before each commit, ensuring code quality.
  • nox: A generic virtualenv management and test command line tool for running tests in isolated environments.
  • pytest: A mature full-featured Python testing tool that helps in writing better programs.
  • pytest-cov: A plugin for pytest that measures code coverage during testing.
  • ipykernel: A package that provides the IPython kernel for Jupyter.
  • types-python-dateutil: Type stubs for python-dateutil, aiding in static type checking.
  • types-toml: Type stubs for TOML, useful for static type checking in TOML parsing.
  • poetry: A tool for dependency management and packaging in Python.

Each dependency plays a critical role in ensuring the code is clean, efficient, and functional, ultimately leading to the development of high-quality software.

While developing code for the OpenBB Platform, one should always install the DevTools packages so that the above development tooling is available out-of-the-box.

info

When setting up the environment using the openbb_platform/dev_install.py script, the DevTools will also be installed.

Econometrics

pip install openbb-econometrics

The openbb-econometrics extension installs a new router path (obb.econometrics) and additional Python libraries:

  • scipy
  • statsmodels
  • arch
  • linearmodels
note

Statsmodels requires a C compiler be present on the system. Follow the instructions here for system-specific methods.

This extension is not accessible via REST API because statsmodels is not serializable.

To install from source in editable mode, navigate into the folder, ~/openbb_platform/extensions/econometrics, and enter:

pip install -e .

After installation, the Python interface will automatically rebuild on initialization.

Quantitative

pip install openbb-quantitative

The openbb-quantitative extension installs a new router path (obb.quantitative) and a few additional Python libraries:

  • pandas-ta
  • scipy
  • statsmodels

To install from source in editable mode, navigate into the folder, ~/openbb_platform/extensions/quantitative, and enter:

pip install -e .

After installation, the Python interface will automatically rebuild on initialization.

Technical

pip install openbb-technical

The openbb-technical extension is for performing technical analysis on time series data. It installs a new router path (obb.technical) and some additional Python libraries:

  • pandas-ta
  • scikit-learn
  • scipy
  • statsmodels

To install from source in editable mode, navigate into the folder, ~/openbb_platform/extensions/technical, and enter:

pip install -e .

After installation, the Python interface will automatically rebuild on initialization.