Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FRED API returns inconsistent realtime_start dates #6

Open
leaderanalytics opened this issue Feb 19, 2024 · 0 comments
Open

FRED API returns inconsistent realtime_start dates #6

leaderanalytics opened this issue Feb 19, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@leaderanalytics
Copy link
Owner

I sent the the question below to the FRED support team. I don't expect a reply from them but in the unlikely event I get one I'll post it here.

API returns inconsistent realtime_start dates

https://api.stlouisfed.org/fred/series/release?series_id=IRA&realtime_start=1776-07-04&api_key=123&file_type=json

The query above returns three rows with the following realtime_start dates:

1996-12-12
1998-12-10
2002-05-02

Running the same query with any date after 2002-05-02 (or without specifying a realtime_start date) returns a single row with the realtime_start set to the date that is passed to the query i.e.:

https://api.stlouisfed.org/fred/series/release?series_id=IRA&realtime_start=2024-02-18&api_key=123&file_type=json

The query above returns one row with the following realtime_start date:

2024-02-18

We know from this document that "The real-time period marks when facts were true or when information was known until it changed".

Based on the results of the queries shown above it appears that the real-time start date is the real-time period when facts were true or when information was known until it changed - unless you query after such date - in which case the realtime_start is the date you query the API.

What is the purpose of reporting a date other than the correct realtime_start date when no date is passed to the query or when the supplied date is after the latest realtime_start date?

@leaderanalytics leaderanalytics added the documentation Improvements or additions to documentation label Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant