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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
58 3 3 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-apipythonworkspaceworkspace-data-apirefinitiv-dataplatform-eikondatatime-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

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.