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
16 4 2 5

how could I fetch how to fetch month-to-date total return?

for example, I would like to grab total return in feb 2019, the return returned by:

ek.get_data('HEIO.AS', fields = ['TR.TotalReturn1Mo'], parameters={'SDate': '2019-02-28', 'Curn':'EUR'})

is actually from 2019-01-28 to 2019-02-28.

how could I grab the total return from 2019-02-01 to 2019-02-28? Thanks!

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.

1 Answer

· Write an Answer
Upvotes
Accepted
39.4k 77 11 27

Here's an example of the call that retrieves total return for a stock between two specific dates:

ek.get_data(['HEIO.AS'],['TR.TotalReturn'],
            {'SDate':'2019-02-01', 'EDate':'2019-02-28'})
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.