Hi, I want to get the PrimaryInstrument of peers list for a given company's RIC. I use below excel formula to get the peers list. How to get this using python api ?
TR("Peers(#1)","TR.PrimaryInstrument",,,'AAPL.O')
For a deeper look into our Eikon Data API, look into:
Overview | Quickstart | Documentation | Downloads | Tutorials | Articles
Hi, I want to get the PrimaryInstrument of peers list for a given company's RIC. I use below excel formula to get the peers list. How to get this using python api ?
TR("Peers(#1)","TR.PrimaryInstrument",,,'AAPL.O')
Hi @uma,
you can use:
ek.get_data("Peers('AAPL.O')",fields='TR.PrimaryInstrument')
to get your list of Peers for Apple.
Hope that helps.
Ronny