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
49 3 6 11

How to retrieve constituents of a fund via Eikon Data API?

How can I retrieve constituents of a fund via Eikon Data API?

eikoneikon-data-apirefinitiv-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.

1 Answer

· Write an Answer
Upvotes
Accepted
1.5k 3 2 3

@hiroko.yamaguchi1 ,

I believe you mean fund's full holdings data. Below is a sample.

import refinitiv.dataplatform.eikon as ek
import pandas as pd

ek.set_app_key('<your app key>')

fund_holdings = ek.get_data('LP40065886', ['TR.FundHoldingRIC','TR.FundHoldingName',
        'TR.FundPercentageOfFundAssets',
        'TR.FundNumberOfShares',
        'TR.FundNumberOfSharesChanged'],
        {'Endnum':'5000'})

pd.set_option('display.max_rows', 20000)
print(fund_holdings)

Notes, 'LP40065886' is the fund's RIC ('LP' followed by Lipper ID).


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.

Many thanks, @b.lee ! I could retrieve the data what I wanted to retrieve. Is there any why to retrieve the data in not tuple but in dataframe so that I can easily manipulate the data?
I figured it out!

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.