Back to Openbb

OpenBB Platform

openbb_platform/README.md

4.7.08.5 KB
Original Source

OpenBB Platform

OpenBB is committed to build the future of investment research by focusing on an open source infrastructure accessible to everyone, everywhere.
Check our website at openbb.co

Overview

The OpenBB Platform provides a convenient way to access raw financial data from multiple data providers. The package comes with a ready to use REST API - this allows developers from any language to easily create applications on top of OpenBB Platform.

Please find the complete documentation at docs.openbb.co.

Installation

PyPI

The command below provides access to the core functionalities behind the OpenBB Platform, and a selection of sources.

bash
pip install openbb

This will install the core, router modules, and the following data providers:

Extension NameDescriptionInstallation CommandMinimum Subscription Type Required
openbb-benzingaBenzinga data connectorpip install openbb-benzingaPaid
openbb-blsBureau of Labor Statistics data connectorpip install openbb-blsFree
openbb-congress-govUS Congress API data connectorpip install openbb-congress-govFree
openbb-cftcCommodity Futures Trading Commission data connectorpip install openbb-cftcFree
openbb-econdbEconDB data connectorpip install openbb-econdbNone
openbb-imfIMF data connectorpip install openbb-imfNone
openbb-fmpFMP data connectorpip install openbb-fmpFree
openbb-fredFRED data connectorpip install openbb-fredFree
openbb-intrinioIntrinio data connectorpip install openbb-intrinioPaid
openbb-oecdOECD data connectorpip install openbb-oecdFree
openbb-polygonPolygon data connectorpip install openbb-polygonFree
openbb-secSEC data connectorpip install openbb-secNone
openbb-tiingoTiingo data connectorpip install openbb-tiingoFree
openbb-tradingeconomicsTradingEconomics data connectorpip install openbb-tradingeconomicsPaid
openbb-yfinanceYahoo Finance data connectorpip install openbb-yfinanceNone

Extras

These packages are not installed when pip install openbb is run. They are available for installation separately or by running pip install openbb[all].

Extension NameDescriptionInstallation CommandMinimum Subscription Type Required
openbb-mcp-serverRun the OpenBB Platform as a MCP serverpip install openbb-mcp-serverNone
openbb-chartingIntegrated Plotly charting library and dedicated window rendering.pip install openbb-chartingNone
openbb-alpha-vantageAlpha Vantage data connectorpip install openbb-alpha-vantageFree
openbb-biztocBiztoc News data connectorpip install openbb-biztocFree
openbb-cboeCboe data connectorpip install openbb-cboeNone
openbb-deribitDeribit data connectorpip install openbb-deribitNone
openbb-ecbECB data connectorpip install openbb-ecbNone
openbb-famafrenchKen French Data Library connectorpip install openbb-famafrenchNone
openbb-federal-reserveFederal Reserve data connectorpip install openbb-federal-reserveNone
openbb-finraFINRA data connectorpip install openbb-finraNone / Free
openbb-finvizFinviz data connectorpip install openbb-finvizNone
openbb-government-usUS Government data connectorpip install openbb-us-governmentNone
openbb-nasdaqNasdaq Data Link connectorpip install openbb-nasdaqNone / Free
openbb-seeking-alphaSeeking Alpha data connectorpip install openbb-seeking-alphaNone
openbb-stockgridStockgrid data connectorpip install openbb-stockgridNone
openbb-tmxTMX data connectorpip install openbb-tmxNone
openbb-tradierTradier data connectorpip install openbb-tradierNone
openbb-wsjWall Street Journal data connectorpip install openbb-wsjNone
bash
pip install openbb-equity openbb-yfinance

Python

python
>>> from openbb import obb
>>> output = obb.equity.price.historical("AAPL")
>>> df = output.to_dataframe()
>>> df.tail()
dateopenhighlowclose
2025-09-30254.86255.92253.11254.63
2025-10-01255.04258.79254.93255.45
2025-10-02256.58258.18254.15257.13
2025-10-03254.67259.24253.95258.02
2025-10-06257.945259.07255.05256.69

API keys

To fully leverage the OpenBB Platform you need to get some API keys to connect with data providers (listed above).

Here's how to set them:

Local file

Specify the keys directly in the ~/.openbb_platform/user_settings.json file.

Populate this file with the following template and replace the values with your keys:

json
{
  "credentials": {
    "fmp_api_key": "REPLACE_ME",
    "polygon_api_key": "REPLACE_ME",
    "benzinga_api_key": "REPLACE_ME",
    "fred_api_key": "REPLACE_ME"
  }
}

Runtime

Credentials can be set for the current session only, using the Python interface.

python
>>> from openbb import obb
>>> obb.user.credentials.fred_api_key = "REPLACE_ME"
>>> obb.user.credentials.polygon_api_key = "REPLACE_ME"

Go to the documentation for more details.

REST API

The OpenBB Platform comes with a ready-to-use REST API built with FastAPI. Start the application using this command:

bash
uvicorn openbb_core.api.rest_api:app --host 0.0.0.0 --port 8000 --reload

API documentation is found under "/docs", from the root of the server address, and is viewable in any browser supporting HTTP over localhost, such as Chrome.

See the documentation for runtime settings and configurations.

Local Development

To develop with the source code, you need to have the following:

  • Git
  • Python 3.10 - 3.13.
  • Virtual Environment with poetry installed.
    • Activate your virtual environment and run, pip install poetry.
  • A local copy of the GitHub repository

Install the repository for local development by using the installation script.

  1. Activate your virtual environment.
  2. Navigate into the openbb_platform folder.
  3. Run python dev_install.py -e to install all packages in editable mode.

See the documentation for an overview of the architecture and how to get started building your own extensions.