The field "TR.IndexConstituentWeightPercent" throws an error:
eikon.get_data('.SPX', ['TR.IndexConstituentRIC', 'TR.IndexConstituentWeightPercent'])
Retrieving only 'TR.IndexConstituentRIC' does work.
Also, the the Excel formula with TR.IndexConstituentWeightPercent does work:
Any suggestions? Thanks!
Here is my sample code:
import eikon as ek ek.set_app_id('your_app_id') y = ek.get_data('.SPX', ['TR.IndexConstituentWeightPercent','TR.IndexConstituentRIC']) print y
I can retrieve the data. I did try swap the order of field and it also worked fine.
Here is the output: