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-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythoneconomic-data
icon clock
10 |1500

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

1 Answer

Upvote
Accepted
13k 32 12 18

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 5.0 MiB each and 10.0 MiB total.

Thanks! This works.

Click below to post an Idea Post Idea