Federal Reserve¶
You can import the module via
quantflow.data.fed.FederalReserve
dataclass
¶
FederalReserve(url='https://www.federalreserve.gov/datadownload/Output.aspx', default_params=(lambda: {'from': '', 'to': '', 'lastobs': '', 'filetype': 'csv', 'label': 'include', 'layout': 'seriescolumn', 'type': 'package'})())
Bases: AioHttpClient
Federal Reserve API client.
This class is used to fetch yield curves from the Federal Reserve at https://www.federalreserve.gov/datadownload/
url
class-attribute
instance-attribute
¶
default_params
class-attribute
instance-attribute
¶
default_params = field(default_factory=lambda: {'from': '', 'to': '', 'lastobs': '', 'filetype': 'csv', 'label': 'include', 'layout': 'seriescolumn', 'type': 'package'})
yield_curves
async
¶
Get treasury constant maturities rates
Source code in quantflow/data/fed.py
ref_rates
async
¶
Get 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.