erykml / Python-for-Finance-Cookbook-2E

The repository of "Python for Finance Cookbook" 2nd edition
MIT License
171 stars 129 forks source link

CPI data from nasdaqdatalink #11

Open Venitaniken opened 7 months ago

Venitaniken commented 7 months ago

Seems like the dataset below from Nasdaq data link is not available anymore. Any work around?

df_cpi = ( nasdaqdatalink.get(dataset="RATEINF/CPI_USA", start_date="2009-12-01", end_date="2020-12-31") .rename(columns={"Value": "cpi"}) )

NotFoundError: (Status 404) (Nasdaq Data Link Error QECx02) You have submitted an incorrect Dataset code. Please check your Dataset codes and try again.