question

Upvotes
Accepted
11 2 3 7

How to get the fund YIELD RATE and DIVIDEND info via Eikon API?

How to get the fund “预期收益率” and “股息” via Eikon API?


1689140117601.png

eikon-data-api#technologyfunds
1689140117601.png (168.0 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.

Upvotes
Accepted
15.5k 33 5 10

Hi @anchu ,

Thank you for your patience, the code below can be used.

df, err = ek.get_data(
    instruments = ['511880.SS'],
    fields = [
        'TR.FundExDate',
        'TR.FundRecordDate',
        'TR.FundPayDate',
        'TR.FundDiv',
        'TR.FundDivCurr',
        'TR.FundIncDistribution'
    ],
    parameters = {'SDate': '2017-01-01','EDate': '2023-07-10'}
)

display(df)

1689258930496.png

Regarding the <NA> in the Record Date field, you can raise a content ticket via MyRefinitiv as this field also return NULL on Eikon Excel as well.

=@RDP.Data("511880.SS","TR.FundExDate;TR.FundRecordDate;TR.FundPayDate;TR.FundDiv;TR.FundDivCurr;TR.FundIncDistribution","SDate=-6Y Edate=1Y CH=Fd RH=IN")

1689258985788.png


1689258930496.png (34.6 KiB)
1689258985788.png (21.0 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.

Upvotes
15.5k 33 5 10

Hi @anchu ,

Using Data Item Browser, you can search for the fields you're looking for.

For example, the projected yield has the field name 'TR.FundProjectedYield'

df, err = ek.get_data(['511880.SS'], ['TR.FundProjectedYield'])
df

1689158083300.png

Regarding the dividend, the code below can be used. As mentioned in the answer in this thread

df, err = ek.get_data('511880.SS',
            ["TR.DivExDate", "TR.DivRecordDate", "TR.DivPayDate","TR.DivUnadjustedGross", "TR.DivCurr"], 
            {'SDate':'2019-01-01','EDate':'2023-07-10', 'DateType':'ED'})
df

1689158110642.png



1689158083300.png (6.8 KiB)
1689158110642.png (17.4 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.

Thanks for your reply. For dividends, I want to get dividend distribution records for all time periods, but using the above code only gets one record. How can I get all records ?

Upvotes
11 2 3 7

All dividends for fund 511880.SS

1689228194805.png


1689228194805.png (62.5 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.