[Python API] How to retrieve competitors or similar companies list

Hello, I am looking for a way to retrieve a list of competitors / similar businesses through the python API.
I attach a simple list like what there is in nasdaq.com (for IBM competitors): http://www.nasdaq.com/symbol/ibm/competitors

Is it possible to retrieve competitors in a similar way?

Thanks in advance for the help!

Best Answer

  • Jirapongse
    Jirapongse admin
    Answer ✓

    Currently, you can a Screener function with Eikon Data API so it can be used to retrieve required information, as shown below.

    screener_exp = "SCREEN(U(IN(Peers('IBM.N'))), IN(TR.ExchangeCountryCode,'US'),IN(TR.TRBCEconSectorCode,'57'),,CURN=USD)"

    peers, err = ek.get_data(instruments=[screener_exp], fields=['TR.RIC','TR.CompanyName'])

    This function finds RICs and company names which are peers of IBM.N, in the US country (TR.ExchangeCountryCode), and in the same Primary Thomson Reuters Business Classification (TR.TRBCEconSectorCode) as IBM.N (Technology (57)).

    However, the support of Screener function in Eikon Data API can be changed in the future.

    For more information regarding this formula, please contact Eikon Excel support team via Contact Us.

Answers