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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 1 1 2

Get Total Return Index from Eikon API

I'm looking to get a particular data value out of the Eikon Python API. The Datastream DFO code is RI and it's called Total Return Index. I cannot for the life of me find it in the Data Item Browser that comes with the proxy. Is this value even available through the API, or only DFO?

eikoneikon-data-apipythonworkspaceworkspace-data-apirefinitiv-dataplatform-eikondatadatastream-for-office
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

Upvotes
Accepted
39.3k 76 11 27

This index is only available through DFO. If you use it to calculate total return on a stock, then you can get total return from Eikon Data API directly using the field TR.TotalReturn, e.g. this will give the total return on Thomson Reuters stock between 01-JAN-17 and 01-JAN-18:

ek.get_data(['TRI.N'],['TR.TotalReturn'],{'SDate':'2017-01-01', 'EDate':'2018-01-01'})
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.

That's disappointing to hear. Thanks for the response!