How can I get dividend yield data using python API?

I am using following to get dividend payout ratio, in the similar way how can I get dividend yield data?

df, err = ek.get_data([m_ric], ['TR.F.DivPayoutRatioPct', 'TR.F.DivPayoutRatioPct.date'], {'ConsolBasis':'All', 'Frq':'FQ', 'SDate':'2010-12-31', 'EDate':'2020-10-26'})

Best Answer

  • [Deleted User]
    [Deleted User] Newcomer
    Answer ✓

    Hi Uday @uday,

    You may use the Data Item Browser on your Refinitiv Workspace to look for fields for any one RIC. Doing so myself for HSBC - for example - I found the 'TR.DividendYield' field. As an example, you may want to use the bellow:


    df, err = ek.get_data(['m_ric '], ['TR.F.DivPayoutRatioPct', 'TR.F.DivPayoutRatioPct.date', 'TR.DividendYield', 'TR.DividendYield.date'], {'ConsolBasis':'All', 'Frq':'FQ', 'SDate':'2010-12-31', 'EDate':'2020-10-26'})


    Is that the field you were looking for?

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.