For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvote
Accepted
55 2 0 3

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

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvote
Accepted
58 0 2 4

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

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
55 2 0 3

Thanks Ronny. This works.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea