Also I would like to pull the portfolio Forecasted Risk using Python.
Attachments: Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.
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?
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.
Please see if the following Previously Answered Question is helpful?
2 days ago, my eikon through python stopped working, showing only the error message: Error code 500 | Server Error: Internal Server Error
get_data to fetch history of fx values
5 year range EIA Crude Cushing Chart - Eikon Python Pull
Download indices in percentages
eikon python modeule unable to work after my jupyter crashed