How to get peers list for a given company's RIC

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')

Best Answer

  • 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

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.