How to use Eikon API to retrieve the peers list

Options

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

Welcome!

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

Best Answer

  • jason.ramchandani01
    Answer ✓

    @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

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.