Registry / data / openbb

openbb

JSON →
library4.7.2pypypi✓ verified 84d ago

OpenBB is an open-source investment research SDK for programmatic access to financial market data from multiple providers. Current version 4.7.1 requires Python 3.10+. Release cadence is monthly.

pip install openbb
INSTALL
IMPORT
SIG · OPENBB
O
openbb
datapythonv4.7.2
Install
Import
Disk
Pass rate
0/ 10
Env Coverage0 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v4.7.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
1/2 runs
1/2 runs
py 3.11
1/2 runs
1/2 runs
py 3.12
1/2 runs
1/2 runs
py 3.13
1/2 runs
1/2 runs
py 3.9
✕ build_error
1/2 runs
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

openbb
import openbb
from openbb import openbb
In v4, the main object is the module itself, not a submodule.
OBJ
from openbb import obb
from openbb_sdk import obb
v4 renamed the package from openbb_sdk to openbb.

Initialize OpenBB SDK with a personal access token and fetch historical prices.

import openbb # Set personal access token (or use environment variable OPENBB_PERSONAL_ACCESS_TOKEN) obb = openbb.OpenBB(token=os.environ.get('OPENBB_PERSONAL_ACCESS_TOKEN', '')) # Get stock data df = obb.equity.price.historical('AAPL', provider='fmp') print(df)
openbb --version
Debug
Known issues
breakingv4 completely redesigned the API. All v3 code using openbb_terminal is incompatible.
fix
Rewrite calls using the new SDK pattern: import openbb; obb = openbb.OpenBB(token); obb.equity.price.historical(...).
affects: 4.0.0+
breakingRemoved the 'openbb_terminal' package. Must use 'import openbb' instead.
fix
Replace 'from openbb_terminal import ...' with 'import openbb' and use obb object.
affects: 4.0.0+
gotchaProvider functions now require a 'provider' keyword argument. Missing it returns an error.
fix
Always specify provider, e.g., provider='fmp', provider='polygon'.
affects: 4.0.0+
gotchaPersonal access token is mandatory; environment variable OPENBB_PERSONAL_ACCESS_TOKEN must be set or passed to constructor.
fix
Set os.environ['OPENBB_PERSONAL_ACCESS_TOKEN'] = 'your_token' or pass token=... to OpenBB().
affects: 4.0.0+
deprecatedSome third-party provider modules are deprecated or moved to separate packages.
fix
Check openbb.dev for up-to-date provider support.
affects: 4.5+
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'openbb_terminal'
Trying to import old v3 package.
fix
Use 'import openbb' and create an OpenBB() instance.
TypeError: __init__() missing 1 required positional argument: 'token'
OpenBB() constructor now requires a token (or set env var).
fix
Pass token or set OPENBB_PERSONAL_ACCESS_TOKEN before instantiation.
openbb.errors.OpenBBError: Provider 'fmp' not found.
Misspelled provider name or provider not installed.
fix
Ensure correct provider name (e.g., 'fmp', 'polygon') and install extras: pip install openbb[all].
AttributeError: module 'openbb' has no attribute 'stocks'
Calling old v3 path pattern.
fix
Use obb.equity.* instead of obb.stocks.*.
Upgrade
Version history
4.7.2latest on PyPI · released May 26, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
56 hits · last 30 days
node
50
OpenAI (training)
1
Resources
openbb — pip install openbb · libregistry