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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 1 1 0

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

eikoneikon-data-apipythonworkspacerefinitiv-dataplatform-eikonworkspace-data-apidata
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

Upvotes
Accepted
2.3k 16 2 2

Hi 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?

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.

Thanks!

Whats the difference between TR.F. & TR.

['TR.F.DivPayoutRatioPct', 'TR.F.DivPayoutRatioPct.date', 'TR.DividendYield', 'TR.DividendYield.date']

The 'F' there stands for 'Fundamentals'. TR.F.xxx field are the new fundamental data types, the same as Reuters Co. Fundamentals. You can find them in the Overview page's menu dropdown:

1603809237527.jpeg (31.0 KiB)