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

Upvotes
Accepted
31 2 2 5

How to use Eikon API to retrieve the peers list

Hi Team,

I want to find out if we can use the API to pull in a list of names who would be considered a peer group for a stock.

Eg) See peers list circled in the lower right for the company Core Laboratories (CLB).


Thanks,

Bingsen

1623939721731.jpeg

eikoneikon-data-apiworkspacerefinitiv-dataplatform-eikonworkspace-data-apipeers
1623939721731.jpeg (200.4 KiB)
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
Accepted
10.6k 20 6 9

@byan Its really easy please try the following:

ric = 'CLB'
peers, err = ek.get_data([ric,"Peers("+ric+")"],['CF_CLOSE','CF_NAME'])
peers

1623944500283.png


1623944500283.png (74.9 KiB)
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.

Worked for me too, thanks @jason.ramchandani01

Can we add multiple codes in one go?


ric = 'MSFT.O';'VOD.L';'BARC.L'

peers, err = ek.get_data([ric,"Peers("+ric+")"],['CF_CLOSE','CF_NAME'])

peers

I did try this, however not sure if its showing for all the 3 companies Peers.

Upvote
31 2 2 5

@jason.ramchandani Thank you very much for your help!

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.