Fred#
- class quantflow.data.fred.Fred(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://api.stlouisfed.org/fred', key: str = <factory>)#
Federal Reserve Economic Data API client
Fetch economic data from FRED.
Classes:
Fred historical frequencies
Methods:
Get categories
Get series data frame
Get series of a given category
Get subcategories of a given category
- class freq(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)#
Fred historical frequencies
- async categiories(**kw: Any) dict #
Get categories
- async serie_data(*, to_date: bool = False, **kw: Any) DataFrame #
Get series data frame
- async series(**kw: Any) dict #
Get series of a given category
- async subcategories(**kw: Any) dict #
Get subcategories of a given category