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

US CPI Data for FRAX #757

Open
bryanjowers opened this issue Aug 5, 2021 · 0 comments
Open

US CPI Data for FRAX #757

bryanjowers opened this issue Aug 5, 2021 · 0 comments

Comments

@bryanjowers
Copy link
Collaborator

Provide the US CPI data from BLS released every month: https://www.bls.gov/news.release/cpi.nr0.htm

Docs/Resources:

The solution intended here for a node with an adapter that queries the data every month and write data on-chain for the series (each series has a unique series_id) detailed here:

https://www.bls.gov/feed/bls_latest.rss

For instance, for the headline print for "All items, U.S. city average, all urban consumers, 1982-84=100, 1-month percent change, seasonally adjusted" (the quoted CPI by media), data can be retrieved through the following GET request:

GET https://api.bls.gov/publicAPI/v2/timeseries/data/CUSR0000SA0

the adapter should check if current month data is available add only the newly added monthly data when available.

The schedule of releases of the data is available here: https://www.bls.gov/schedule/news_release/cpi.htm

All Series require the headline figure and the composition. Priority#1 to the headline figure ("seriesID": "CUSR0000SA0").

Requirements / Workflow

Requests for each series by date (month+year) should enable retieving the figure available

By default, a request should return the latest available month and figure

Additionally, the adapter could be enahnced by calculating the monthly and yoy increases/decreases for each series. by convention, the change %s are rounded to 1 decimal place.

Endpoint(s)

GET https://api.bls.gov/publicAPI/v2/timeseries/data/CUSR0000SA0

API Credentials (Test)

Public API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant