Hello,
as a follow up to my recent question here, which was wonderfully answered, I was wondering if it is possible to get the historical/past portfolio holdings of a mutual fund via the Eikon API?
In Eikon, this data is available when viewing a specific fund, then going holdings => derived holdings. A screenshot of that screen is attached, which shows that one can view the past portfolio for any of the past months.
But how would I access this via Python? In the Excel formula builder, I was not able to see a way to enter a date for the fields that return the portfolio holdings, e.g. 'TR.FundHoldingName', 'TR.FundPercentageOfFundAssets', 'TR.FundNumberOfShares'.
Can the following code, which returns the top 100 holdings of a specific fund for the last available date, be adapted to get historical portfolios?
data , err = ek.get_data('LP40065886',
['TR.FundHoldingRIC',
'TR.FundHoldingName',
'TR.FundPercentageOfFundAssets',
'TR.FundNumberOfShares],
{'Endnum':'100'})