The formula is
=TR(".STOXX";"TR.IndexConstituentRIC;TR.IndexConstituentName;TR.IndexConstituentWeightPercent";"SDate=2016-06-01")
The python code:
import eikon as trtr.set_app_id('blah')df, e = tr.get_data(['.STOXX'], ['TR.IndexConstituentRIC', 'TR.IndexConstituentName','TR.IndexConstituentWeightPercent'], {'SDate':'20160601'})
Thank you, I put the formula in the excel sheet, however it returns me one single list of constituents. How can I retrieve the constituents for every month (or quarter) from a certain date? @Zhenya Kovalyov
What is more, somethimes the result is "NULL", am I making any mistake?
You either need to create a separate function for each date for which you'd like to retrieve the list of constituents. Or you can retrieve the list of joiners and leavers between two dates, e.g.=TR(".STOXX","TR.IndexJLConstituentChangeDate;TR.IndexJLConstituentRIC.change;TR.IndexJLConstituentRIC;TR.IndexJLConstituentComName","SDate=2017-03-08 EDate=2018-03-08 IC=B CH=Fd RH=IN")
Do you have an example you can share?
Hello,
Do you have an example with Eikon .NET Api?
Also where can you find the documentation of the parameters field in the python get_data function?
Many thanks,
All API documentation including tutorials and code samples can be found right here on this portal.Here's the link to the page listing the APIs available with Eikon.https://developers.thomsonreuters.com/eikon-apis-0/apis-in-this-familyIf you're interested in streaming market data or timeseries of price history, click on the link to .NET APIs for use in custom applications. If you also need fundamental and reference data follow the link to COM APIs for use in custom applications (.NET APIs do not provide access to fundamental and reference data).
And here's the link to the documentation page for Eikon Data APIs where you can find Eikon Data APIs for Python Reference Guide detailing the methods available through this API and their signatures including the parameters for get_data method.https://developers.thomsonreuters.com/eikon-data-apis/docs
Can you share the example code as mentioned by @Alex Putkov to offer further insight into your question?