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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 1 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-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
18k 21 12 20

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 5.0 MiB each and 10.0 MiB total.

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

Upvotes
18k 21 12 20

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 5.0 MiB each and 10.0 MiB total.

Upvotes
1 1 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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea