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

Download portfolio and benchmark data in Eikon using python

I have some portfolios and their benchmarks loaded into Eikon. I'd like to use python to pull yesterday's portfolio constituents, weights, along with the benchmark weights. is this possible?


Also I would like to pull the portfolio Forecasted Risk using Python.

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apirisk
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 @dbishnoi

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?


If so please can you click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.

Thanks,


AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

Upvotes
Accepted
36 2 2 2

Thank you, but is it possible to access the weight of the assigned benchmark as well? And also is it possible to access the contribution to active risk?

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 @Agnes Terada,

Could you please help answer this question?

Thanks much

Hi @dbishnoi ,

You can retrieve the benchmark weights using the same data items. For example:

df1, err1 = ek.get_data(['Portfolio(SAMPLE_ASSET_ALLOCATION_US_AGGRESSIVE)'],['TR.PortfolioConstituentName', 'TR.PortfolioWeight'])

df2, err2 = ek.get_data(['Portfolio(SPY-A)'],['TR.PortfolioConstituentName', 'TR.PortfolioWeight'])

The ex-ante risk items are currently unavailable via Eikon API, so you will need to continue using Portfolios & Lists application in Eikon.

Upvotes
32.2k 40 11 20

Hello @dbishnoi,

Please see if the following Previously Answered Question is helpful?

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.