Investment research for everyone, anywhere.
npx @tessl/cli install tessl/pypi-openbb@4.4.0A comprehensive Python financial data platform that provides investment research capabilities for everyone, anywhere. OpenBB offers unified access to multiple financial data types including equities, options, cryptocurrency, forex, macroeconomics, and fixed income through both Python and CLI interfaces. The platform integrates with numerous financial data vendors, supports AI agent integration, and features a modular architecture with extensible providers.
pip install openbbpip install openbb[all]pip install openbb-clifrom openbb import obbAll OpenBB functionality is accessed through the obb object, which provides the unified interface to all financial data capabilities.
from openbb import obb
# Get historical stock data
stock_data = obb.equity.price.historical("AAPL")
df = stock_data.to_dataframe()
# Search for stocks
search_results = obb.equity.search("Apple")
# Get cryptocurrency data
crypto_data = obb.crypto.price.historical("BTC-USD")
crypto_df = crypto_data.to_dataframe()
# Get economic indicators
unemployment_data = obb.economy.unemployment()
economic_df = unemployment_data.to_dataframe()OpenBB Platform uses a modular, provider-agnostic architecture:
obb entry point for all financial data.to_dataframe(), etc.)The platform abstracts data source complexity while maintaining full access to provider-specific features and ensuring consistent data formats across all financial domains.
Comprehensive equity market data including historical prices, fundamental analysis, earnings data, institutional ownership, dark pool activity, and company discovery tools.
# Price data
def obb.equity.price.historical(symbol: str, **kwargs) -> ResponseObject: ...
def obb.equity.price.quote(symbol: str, **kwargs) -> ResponseObject: ...
# Company search and screening
def obb.equity.search(query: str, **kwargs) -> ResponseObject: ...
def obb.equity.screener(**kwargs) -> ResponseObject: ...
# Fundamental data access points
obb.equity.fundamental # Financial metrics and company data
obb.equity.calendar # Earnings, dividends, IPOs, events
obb.equity.estimates # Analyst estimates and consensus
obb.equity.ownership # Institutional and insider dataCryptocurrency market data including historical prices, market information, and trading pair discovery across major exchanges.
# Crypto price data
def obb.crypto.price.historical(symbol: str, **kwargs) -> ResponseObject: ...
# Crypto search and discovery
def obb.crypto.search(query: str, **kwargs) -> ResponseObject: ...Macroeconomic data and indicators including GDP, inflation, employment statistics, central bank data, and global economic metrics.
# Economic data access
obb.economy # Macroeconomic indicators and dataBond and fixed income data including government bonds, corporate bonds, yield curves, and fixed income analytics.
# Fixed income data
obb.fixedincome # Bond data and fixed income analyticsCommodity market data including energy, metals, agricultural products, and specialized commodity reports.
# Commodity data and reports
def obb.commodity.short_term_energy_outlook(**kwargs) -> ResponseObject: ...
def obb.commodity.petroleum_status_report(**kwargs) -> ResponseObject: ...Foreign exchange data including currency pairs, exchange rates, and forex market information.
# Currency and forex data
obb.currency # Foreign exchange dataExchange-traded fund and market index data including ETF analytics, index composition, and performance metrics.
# ETF data
obb.etf # Exchange-traded fund data and analytics
# Index data
obb.index # Market indices dataOptions and derivatives data including options pricing, Greeks, volatility analysis, and derivatives market information.
# Derivatives data
obb.derivatives # Options and derivatives analyticsFinancial news aggregation and market sentiment analysis from multiple sources.
# News and sentiment data
obb.news # Financial news and sentiment analysisTechnical analysis indicators, charting capabilities, and quantitative analysis tools.
# Technical analysis tools
obb.technical # Technical indicators and analysis
obb.quantitative # Quantitative analysis and metricsRegulatory filings, academic research factors, and econometric analysis tools.
# Regulatory data
obb.regulators # SEC filings and regulatory data
# Academic research factors
obb.famafrench # Fama-French research factors
# Econometric analysis
obb.econometrics # Econometric modeling toolsOpenBB supports multiple data providers that can be configured and switched dynamically:
# Provider configuration (examples of typical usage patterns)
# Configuration is handled through OpenBB Hub or local configurationFree Providers:
Paid Providers:
# Configuration is managed through:
# - OpenBB Hub (my.openbb.co) for centralized credential management
# - Local configuration files
# - Environment variables
# - Runtime configurationAll OpenBB API calls return structured response objects with built-in conversion methods:
import pandas
class ResponseObject:
"""
Response object returned by all OpenBB API calls.
Provides methods to convert financial data into various formats
for analysis and integration with other tools.
"""
def to_dataframe(self) -> pandas.DataFrame:
"""
Convert response data to pandas DataFrame.
Returns:
pandas.DataFrame: Structured data ready for analysis
"""
...
def to_dict(self) -> dict:
"""Convert response data to dictionary format."""
...
def to_json(self) -> str:
"""Convert response data to JSON string."""
...# OpenBB Platform includes a built-in REST API server
# Default endpoint: http://localhost:6900
# Provides HTTP access to all platform functionality# Separate CLI package provides command-line access
pip install openbb-cli
# CLI mirrors Python API structure
# Supports automation via OpenBB Routine Scripts