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 1 2 1

How to pull historical Economic Indicator?

I'm trying to get historical data for `CNGYDY=ECI`. I'd like to find a way to use the Eikon API that pull the equivalent of

=RHistory("CNGYDY=ECI","ECONOMIC.Timestamp;ECONOMIC.Value"," START:29-Jun-2018 END:30-Mar-2020 INTERVAL:1Q",,"TSREPEAT:NO")

I have tried a few ways such as

ek.get_data('CNGYDY=ECI', ["ECONOMIC.Timestamp", "ECONOMIC.Value"], {'SDate':'1-1-2010', 'EDate':'1-1-2020'})

and

ek.get_timeseries('CNGYDY=ECI', interval='monthly')

but nothing worked. Would love to hear some suggestions! Thanks,

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apihistoricaleconomic-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
Upvotes
Accepted
18.2k 21 13 21

Hi @pdinh

You can use internal = "quarterly"


ahs.jpg (58.4 KiB)
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.

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.