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.1.1.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.1.1-py3-none-any.whl (38.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for openbb_famafrench-1.1.1.tar.gz
Algorithm Hash digest
SHA256 d0fa68ce921a654c78450b9df7f96feb57043e56798bb5d0c51a356177e5c2b1
MD5 fcb4aaf51323d0bbb61594800eca9cb2
BLAKE2b-256 645f43aac1bc5f332b585dfb5c7408dc7fe92170754e22bf73343392d579d459

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for openbb_famafrench-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 657221408c5abab828733a1f08aaf3788145869e9c7d93ec2f5d1059d51a25c9
MD5 b6c56404f36f3745779955565606fc3d
BLAKE2b-256 96d5334911ab8804b108379e6080a8300c3821c3f58249bde9f90e9c15b4ec8e

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