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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openbb_famafrench-1.1.0.tar.gz.
File metadata
- Download URL: openbb_famafrench-1.1.0.tar.gz
- Upload date:
- Size: 28.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.7 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79420f5a2b24cf7b487c141d0ecff5b8f5f465b5142f9f1524dc54a23e9415ca
|
|
| MD5 |
11ee3a39571284d9bb513072b3b61fda
|
|
| BLAKE2b-256 |
a185030fcbfe93f9f19c7ecc870fea27fd93192d95f05c6e46157174efda241d
|
File details
Details for the file openbb_famafrench-1.1.0-py3-none-any.whl.
File metadata
- Download URL: openbb_famafrench-1.1.0-py3-none-any.whl
- Upload date:
- Size: 38.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.7 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9eeca80c53594ec0ddc8ce180df9e7aa7e2a9141dc1756a7805f7972801d150d
|
|
| MD5 |
9c6d4fad01b8240878ec0ed0f81c6a64
|
|
| BLAKE2b-256 |
27c9f54d4bc5d426d5ebe4c37e0998b4db1d461c0391b9e9b78d863f184e43e8
|