Skip to main content

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.

Release files for openbb-famafrench 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openbb-famafrench 1.2.1
File Size Uploaded
openbb_famafrench-1.2.1.tar.gz 28.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for openbb-famafrench 1.2.1
File Interpreter ABI Platform
openbb_famafrench-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 66.6 kB

Release files / openbb_famafrench-1.2.1.tar.gz

Download URL openbb_famafrench-1.2.1.tar.gz
Size 28.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bca59c75e1efdc8b2745b6375864cdd3c53008aadefc8431402fb09096d96d11
BLAKE2b-256 checksum
How to use checksums
2ec8ba51f03e665c44615cc7c0c0a30590abb5d0a1d069fbe0dfd71d95ad6fca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.13.11 Darwin/25.5.0

Release files / openbb_famafrench-1.2.1-py3-none-any.whl

Download URL openbb_famafrench-1.2.1-py3-none-any.whl
Size 38.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
068fb6558c32074ccbd6853d2d40c350c8cb6f621cb2970d4d004a01ba8faef2
BLAKE2b-256 checksum
How to use checksums
66f1be086a1b0969a62349d77f9dbab9327e694cd22ded520ebb5f0aec236db0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.13.11 Darwin/25.5.0

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page