Hi i am currently trying to work out my own Dividend Yield.
I am using the following code to retrieve the daily price close and hope to index and match it with the dividend ex date.
df, err = ek.get_data(
instruments = [Instrument],
fields = [
'TR.PriceClose.date'
'TR.DivAdjustedNet',
'TR.DivAdjustedGross',
'TR.DivRecordDate',
'TR.DivPayDate',
'TR.DivExDate',
'TR.PriceClose'
],
parameters = {'SDate': '2021-10-01', 'EDate': 1,}
)
display(df)