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
18 3 1 5

How can I get Fund portfolio holding with python Eikon API?

How can I get Fund portfolio holding with python Eikon API?

Thank you so much.

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apifunds
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
318 1 0 4

Hi @ethan.hayashi

You can use:

fund, err = ek.get_data(['Portfolio(35530081)'],['TR.PortfolioConstituentName', 'TR.PortfolioWeight'])

You can find the fund code in the Portfolios & Lists application:


output.jpg (50.3 KiB)
code.jpg (54.3 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.

Is there a way to specify a particular date? or force it to pull the latest?

Upvote
18 3 1 5

Hi @Anges Terada

Thank you so much. I try it.

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.