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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 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-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythondata
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
1.4k 6 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 5.0 MiB each and 10.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)
Click below to post an Idea Post Idea