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
58 4 4 8

Pulling GDP time series for country

Hi,

I was wondering how I could pull the time series for, say, GDP of a country using the python API. Suppose I have the code, aCAXGDP/CA, for GDP. What function should I use and how should I use it?

I've tried getdata, except I'm not sure what the field would be called (it's not really a price?)

I've tried get timeseries, but it seems to accept the GDP code?

Thanks

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apidatatime-series
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
4.6k 26 7 22

@dshi

df = ek.get_timeseries('aCAXGDP/CA', interval='yearly', start_date='1999-12-31')
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.