Skip to content

Commit

Permalink
added missing pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
theOGognf committed Jan 28, 2024
1 parent 05f1058 commit 1728d36
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/finagg/fred/api/_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ def get_first_observations(
units: None | str = "lin",
frequency: None | str = None,
aggregation_method: None | str = "avg",
paginate: bool = False,
api_key: None | str = None,
) -> pd.DataFrame:
"""Get only the initial releases/observations for an
Expand Down Expand Up @@ -297,6 +298,8 @@ def get_first_observations(
- "sum" = sum
- "eop" = end of period
paginate: Whether to manage `offset` automatically, making multiple
API calls until all results are returned.
api_key: Your FRED API key. Defaults to the ``FRED_API_KEY``
environment variable.
Expand Down Expand Up @@ -330,6 +333,7 @@ def get_first_observations(
frequency=frequency,
aggregation_method=aggregation_method,
output_type=4,
paginate=paginate,
api_key=api_key,
)
except HTTPError:
Expand All @@ -343,6 +347,7 @@ def get_first_observations(
units=units,
frequency=frequency,
aggregation_method=aggregation_method,
paginate=paginate,
api_key=api_key,
)

Expand Down

0 comments on commit 1728d36

Please sign in to comment.