Federal Reserve#

class quantflow.data.fed.FederalReserve(session: S | None = None, content_type: str = 'application/json', session_owner: bool = False, ResponseError: Type[HttpResponseError] = <class 'fluid.utils.http_client.HttpResponseError'>, ok_status: frozenset = frozenset({200, 201}), default_headers: dict[str, str] = <factory>, url: str = 'https://www.federalreserve.gov/datadownload/Output.aspx', default_params: dict[str, ~typing.Any] = <factory>)#

Federal Reserve API client.

This class is used to fetch yield curves from the Federal Reserve at https://www.federalreserve.gov/datadownload/

Methods:

ref_rates

Get policy rates

yield_curves

Get treasury constant maturities rates

async ref_rates(**params: Any) DataFrame#

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.

async yield_curves(**params: Any) DataFrame#

Get treasury constant maturities rates