For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 1 0

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

eikoneikon-data-apipythonworkspaceworkspace-data-apirefinitiv-dataplatform-eikoneconomic-data
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Upvote
Accepted
15.2k 40 12 19

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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thanks! This works.