Upgrade from Eikon -> Workspace. Learn about programming differences.

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 1 2

get_data not pulling latest dividend data

tmp, err = ek.get_data('AGNC.O', ["TR.DivExDate", "TR.DivRecordDate", "TR.DivPayDate", "TR.DivUnadjustedGross", "TR.DivCurr"], {'SDate':str('2019-04-28'),'EDate':str('2019-06-04')})

Output missing 2019-05-30 dividend....
Instrument Dividend Ex Date Dividend Record Date Dividend Pay Date 
AGNC.O       2019-04-29           2019-04-30        2019-05-09

Gross Dividend Amount Dividend Currency
                 0.18               USD
eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-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.

Hi @dchu,

I'm following up to see whether any of the suggestion below helped.

thanks.

Upvotes
Accepted
39.4k 77 11 27

@dchu
By default SDate and EDate filters are applied on dividend payment date. For dividend of $0.16 with ex date of 30-May-19 the payment date was 11-Jun-19, which is outside the date range specified by SDate and EDate parameters in your request. You can control which date type is used as date range filter by adding DateType parameter. E.g. if you'd like to filter on ex dividend date use

ek.get_data('AGNC.O', 
	["TR.DivExDate", "TR.DivRecordDate", "TR.DivPayDate",
	 "TR.DivUnadjustedGross", "TR.DivCurr"], 
	{'SDate':'2019-04-28','EDate':'2019-06-04', 'DateType':'ED'})
You may also want to add TR.DivDate field to your request. This field returns the date according to date type specified by DateType parameter.
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.

Upvotes
79.2k 251 52 74

@dchu

I have verified it with Eikon Excel and found that SDate and EDate may use the Date field in TR.DivExDate when querying.

Therefore, if I change the EDate to '2019-06-11', the output will contain the latest dividend ex date.

However, you may need to directly contact the Eikon support team to confirm this behaviour.


divexdate.png (26.4 KiB)
output.png (20.6 KiB)
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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.