Fetch official Federal Reserve data for your desired use.


Keywords
Federal, Reserve, Economics, Finance, fed, federal-reserve, python
License
MIT
Install
pip install FedPy==1.1.8

Documentation

FedPy

Everything Federal Reserve Related

Open source python library for pulling data related to Federal Reserve.

Depending on the data you're trying to access FedPy will return a pandas DataFrame, Dictionary, or a float.

Installation:

Install using pip:

pip install FedPy

Basic Example Usage:

import FedPy
t_bill_holdings = FedPy.SOMA.holdings("bills")

Output's a pandas DataFrame with the CUSIP as the column name:

                                9127964W6           912796N54           912796H51  ...           912796L64           912796M71           912796M89
asOfDate                       2021-11-03          2021-11-03          2021-11-03  ...          2021-11-03          2021-11-03          2021-11-03
maturityDate                   2021-11-04          2021-11-09          2021-11-12  ...          2022-08-11          2022-09-08          2022-10-06
issuer                                                                             ...
spread                                                                             ...
coupon                                                                             ...
parValue                      20426299000          4646453200         11769171200  ...          3847131500          3419277000          5630934600
inflationCompensation                                                              ...
percentOutstanding     0.1257560211293619  0.0583431654873188  0.0982657862288283  ...  0.1016500440616873  0.0913774993736779  0.1420853358794164
changeFromPriorWeek                     0                   0                   0  ...                   0                   0                   0
changeFromPriorYear                                                                ...
securityType                        Bills               Bills               Bills  ...               Bills               Bills               Bills

Documentation is currently being worked on, and will be done soon!