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
36 2 2 2

Portfolio Holdings as of a specific date in Eikon through python

I'm trying to pull the holdings and shares of a portfolio I've uploaded into Eikon, in Python.


My code is :

ek.get_data(instruments=['Portfolio(xxxx)'],fields=['TR.PortfolioStatementDate','TR.PortfolioName','TR.PortfolioConstituentName', 'TR.PortfolioShares'],parameters={'SDate':'20200115','EDate':'20200115'})

I still only get back the latest shares, how can i pull on a specific day, and also over a range, daily?

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

@dbishnoi

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question? If yes please click the 'Accept' text next to the most appropriate reply.

If you have already known an answer, please share your answer, and then accept it. 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
78.8k 250 52 74

@dbishnoi

I have tested it with Eikon Excel and found that it only returns the latest shares.

Therefore, you need to contact the Eikon Excel support team via my.refinitiv.com and ask for the TR formula used to pull the shares on a specific day.

Then, if the formula is available, we can apply it to the get_data method.

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.

Hi @dbishnoi, did you get a reply from the Eikon Excel support team?

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.