Retrieving India inflation data using python API

I am trying to get India CPI data by using the following API call:

data = ek.get_timeseries(["INCPIY=ECI"], ["ECONOMIC.Value"], start_date="2004-01-01", end_date="2019-12-31", interval="monthly")

This returns all NaNs. Same issue with RIC:"aINCCPIYF". Can someone help with errors in the above or help with another method of doing the same.

Thanks

Best Answer

  • Gurpreet
    Answer ✓

    Hi @bhaskar.chaudhry, The field name you are specifying is incorrect. You can omit the field altogether to get all the timeseries fields available for that instrument.

    Try:

    ek.get_timeseries('INCPIY=ECI', start_date="2004-01-01", end_date="2019-12-31", interval="monthly")

    The data seems to be available until 2012 only.

Answers