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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for openbb_famafrench-1.2.1.tar.gz
Algorithm Hash digest
SHA256 bca59c75e1efdc8b2745b6375864cdd3c53008aadefc8431402fb09096d96d11
MD5 45ecb996da6b42c2bf373c475b30de33
BLAKE2b-256 2ec8ba51f03e665c44615cc7c0c0a30590abb5d0a1d069fbe0dfd71d95ad6fca

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for openbb_famafrench-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 068fb6558c32074ccbd6853d2d40c350c8cb6f621cb2970d4d004a01ba8faef2
MD5 2e1a66907e872c7c4ae7552efcd8339e
BLAKE2b-256 66f1be086a1b0969a62349d77f9dbab9327e694cd22ded520ebb5f0aec236db0

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