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
1 3 0 0

How do you get time series of S&PCOMP(DSPE)

I can use python to get a time series of

S&PCOMP, using the below code


import eikon as ek

data=ek.get_timeseries('.SPX', fields='CLOSE', start_date='2017-01-01',interval='daily')


but how do I get the time series for S&PCOMP(DSPE)? thank you

eikoneikon-data-apipythonworkspacerefinitiv-dataplatform-eikonworkspace-data-apidatastream-api
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
83.1k 281 53 77

@tppvin

Is DSPE "Price/Earnings Ratio (Datastream Calculated)"?

I found a TR.Index_PE_RTRS field which is the price-earnings ratio of the index as calculated by Thomson Reuters.


1580197797090.png (22.5 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.