Upgrade from Eikon -> Workspace. Learn about programming differences.

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvote
Accepted
55 4 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-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-api
icon clock
10 |1500

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

Upvote
Accepted
58 0 3 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 512.0 KiB each and 1.0 MiB total.

Upvotes
55 4 0 3

Thanks Ronny. This works.

icon clock
10 |1500

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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