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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
16 1 2 4

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-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.

1 Answer

Upvotes
Accepted
39.2k 75 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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea