Skip to main content

Fama-French data integration for OpenBB Platform.

Project description

OpenBB Fama-French Extension

This extension implements the Ken French data library (Source: https://mba.tuck.dartmouth.edu/pages/faculty/ken.french/data_library.html) as an OpenBB Platform Provider and Router extension.

Installation

Install this extension with:

pip install openbb-famafrench

Coverage

The extension provides six API endpoints:

In [1]: from openbb import obb

In [2]: obb.famafrench
Out[2]:
/famafrench
    breakpoints
    country_portfolio_returns
    factor_choices  <-- Utility function serving choices to the OpenBB Workspace widget
    factors
    international_index_returns
    regional_portfolio_returns
    us_portfolio_returns

Usage

The most common use will be for retrieving the 3 and 5-factor models, default state is 3-factors, at a monthly interval, for the United States.

from openbb import obb

factors = obb.famafrench.factors()

Or, by region and factor:

momentum = obb.famafrench.factors(factor="momentum", region="europe")

Metadata corresponding to the file downloaded is available under, extra["results_metadata"], of the results object.

factors.extra["results_metadata"]

{
    'description': '### \n\nThis file was created using the 202504 CRSP database. The 1-month TBill rate data until 202405 are from Ibbotson Associates. Starting from 202406, the 1-month TBill rate is from ICE BofA US 1-Month Treasury Bill Index.\n\n',
    'frequency': 'monthly',
    'formations': ['Mkt-RF', 'SMB', 'HML', 'RF']
}

Refer to the endpoint's docstring for detailed descriptions.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openbb_famafrench-1.2.0.tar.gz (28.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openbb_famafrench-1.2.0-py3-none-any.whl (38.4 kB view details)

Uploaded Python 3

File details

Details for the file openbb_famafrench-1.2.0.tar.gz.

File metadata

  • Download URL: openbb_famafrench-1.2.0.tar.gz
  • Upload date:
  • Size: 28.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.11 Darwin/25.3.0

File hashes

Hashes for openbb_famafrench-1.2.0.tar.gz
Algorithm Hash digest
SHA256 401c8a9ec4ec76c7515ad773ac5413cf210873bb1c695db6f85f8e38be04b740
MD5 438b986fbb45cd5e33aaa2aafa7656b4
BLAKE2b-256 24237f24207e0a72cebabfa9716176f549c3bd6fa145015d181d60c2da39b2b3

See more details on using hashes here.

File details

Details for the file openbb_famafrench-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: openbb_famafrench-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 38.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.11 Darwin/25.3.0

File hashes

Hashes for openbb_famafrench-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c93151eaa282c31925d5d7f7f8a5fdb1bca164897e408f2253594b426eaeaa21
MD5 be4ebc98f56c10a37274a34c31013dc1
BLAKE2b-256 80c4496288b801ef0bcc5e520a90f03f735b3b9519e82c0448a154ff728f3a8a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page