mortada / fredapi

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

Unable to fetch series later than 2022 #62

Open Lord-Chrodin opened 1 year ago

Lord-Chrodin commented 1 year ago

Hi,

I have been trying to fetch series using fred.get_series(code, observation_start=(from_date), observation_end=(to_today), units=units_used, frequency=frequency_used). The series are in a dictionary and I'm using the aforementioned bit in a loop, then writing the result in an excel file. Everything works great, however, the latest date I am receiving is "2022-12-01" instead of January and February 2023 data that DO exist for most of the series I am fetching (the monthly ones). My start date is 2020 but even If I put 2022, it would still end on December that year. Changing the "observation_end" from "to_today" to a static 2023-02-28 per example also did not work. Creating a new API key also yielded the same results. Is there a reason why it is stopping at the end of 2022?