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 to get the PE of s&p 500

hi, I tried to get the time series for the PE of s&p 500 using S&PCOMP(PE), but it keeps giving me an error of "remote server error, not implemented", how do I download this data, thank you

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

Hello @tppvin,

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If yes, please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,


AHS

Upvotes
Accepted
18.2k 21 13 21

Hi @tppvin

You can use the Data Item Browser to check if the field supports timeseries.

To launch Data Item Browser, type in DIB and press enter on Eikon search bar.


Here is the sample code to retrieve 1 year daily data on a specific RIC.

But because you are requesting for 500+ RIC codes.

So you have to also take API limitation into your consideration.

Please read about API limitation at https://developers.refinitiv.com/eikon-apis/eikon-data-api/docs?content=49692&type=documentation_item

So you can spit the RIC code or spit the period into a smaller period so you won't exceed the limited data point.


ahs1.png (152.7 KiB)
ahs2.png (19.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.

About the limit with data grid, last version fixed the 10.000 datapoint limit

Upvotes
18.2k 21 13 21

Hi @tppvin

Try this code:


ahs.png (45.7 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.

Upvotes
1 3 0 0

Thank you very much, sorry I did not phrase my question very well, I wanted to get the time series of SP500 PE data for 1 year, how can I do it? in the datastream, I just use S&PCOMP(PE) to get the time series. but I cannot do it for eikon 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.

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.