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 5

how to get more than the top 10 holdings from TR.FundPercentageOfFundAssets

I have the following formula in Excel that allows me to get all the holdings weights for a fund:


=TR("ARKK.K","TR.ISIN;TR.FdSecurityOwnedRIC;TR.FdSecurityOwnedName;TR.FdInvestorFilingDate;TR.FdInvestorSharesHeld;TR.FdInvestorShrsHeldChg; TR.FundPercentageOfFundAssets","EndNum=5000 CH=Fd")


How do I replicate this in python?


I have the following code

hldgs, err = ek.get_data(
instruments = 'ARKK.K',
fields = ['TR.FdSecurityOwnedRIC;TR.FdInvestorFilingDate;TR.FundPercentageOfFundAssets'])


But it only gives me the top 10 holdings. How do I get this to give me the full set of holdings weights? I see in the Excel formula that "EndNum=5000" is achieving this goal. How can I amend my python code to do the same thing?

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-api
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.

Hello @ajalden,

Thank you for your participation in the forum.

Is the reply below satisfactory in resolving your query?

If yes, please click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

-AHS

1 Answer

· Write an Answer
Upvotes
Accepted
18.2k 21 13 21

Hi @ajalden

You can use Data Item Browser to check the supported parameters for each field.


You can then add EndNum parameter to the API call. You can change from 5 to 1000.


ahs1.png (70.2 KiB)
ahs2.png (30.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.