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!

Best Answer

  • Alex Putkov.1
    Answer ✓

    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'})