Federal Reserve¶
You can import the module via
quantflow.data.fed.FederalReserve
dataclass
¶
Bases: AioHttpClient
Federal Reserve API client.
This class is used to fetch yield curves from the Federal Reserve data download
url
class-attribute
instance-attribute
¶
Base URL for the Federal Reserve data download API.
yield_curves
async
¶
Treasury constant maturity par yields indexed by observation date.
Columns are the tenors in MATURITIES and rates are returned as
decimals (for example 0.0372 for 3.72%).
Source code in quantflow/data/fed.py
ref_rates
async
¶
Get a pandas dataframe of policy rates
Prior to 2021-07-08 it is the rate on excess reserves (IOER rate) After 2021-07-08 it is the rate on reserve balances (IORB rate)
The IOER rate was the primary tool used by the Federal Reserve to set a floor on the federal funds rate. While the Interest rate on required reserves (IORR rate) existed, the IOER rate had a more direct impact on market rates, as banks typically held far more excess reserves than required reserves. Therefore, the IOER rate was more influential in the Fed's monetary policy implementation.