mortada / fredapi

Python API for FRED (Federal Reserve Economic Data) and ALFRED (Archival FRED)
Apache License 2.0
902 stars 159 forks source link

Bad Request. This exceeds the maximum number of vintage dates allowed (2000). #48

Closed Doug290 closed 2 years ago

Doug290 commented 2 years ago

When fetching for T5YIFR, for instance, there's an error.

OBS: using get_series_all_releases() method

Bad Request. There are 2004 vintage dates in the specified real-time period: 1776-07-04 to 9999-12-31. This exceeds the maximum number of vintage dates allowed (2000).

Maybe the solution would be to add a date range for this method? Or option to increase the number of vintages dates?

Thanks

mortada commented 2 years ago

please use version 0.5.0, thanks!

RainmakerP commented 2 years ago

Already using v0.5.0 yet this issue persists.

In case you want to recreate the issue, try running this command:

df = fred.get_series_all_releases("T10Y2Y")