Upgrade from Eikon -> Workspace. Learn about programming differences.

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 2 1

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-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apieconomic-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

· Write an Answer
Upvote
Accepted
21.8k 57 14 21

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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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