Fetching a company’s peers¶
You can use the LSEG Data Library for Python to retrieve a list of the companies judged to be peers of a given company.
To do so, pass a company’s Refinitiv Instrument Code to the Peer component of the package’s discovery submodule. By default, the method only returns the code of each peer. You’ll need to pass the resulting list to another query to retrieve additional information about each company.
Here’s how to retrieve each of the Thomson Reuters’ peers:
ld.discovery.Peers("TRI.N")
<lseg.data.discovery._universe_expanders._peers.Peers at 0x7fbf58ec4d70>
You’ll need to convert it to a list object to see the results.
list(ld.discovery.Peers("TRI.N"))
['SPGI.N',
'MSCI.N',
'FDS.N',
'EXPN.L',
'WLSNc.AS',
'HEIJ.AS',
'MORN.OQ',
'REL.L',
'QBRb.TO',
'CCA.TO',
'T.TO',
'RCIb.TO',
'BCE.TO',
'EFX.N',
'TRU.N',
'CJRb.TO',
'MCO.N',
'CTAS.OQ',
'VRSK.OQ',
'CGX.TO',
'RAYa.TO',
'IT.N',
'RHI.N',
'ROL.N',
'BFAM.N',
'KLC.N',
'FICO.N',
'FORA.TO',
'IRM.N',
'ADT.N',
'NIQ.N',
'ULS.N',
'VSTS.N',
'BV.N',
'CLVT.N',
'TCLa.TO',
'WILD.TO',
'ILLM.TO',
'MAN.N',
'ASGN.N',
'CSU.TO',
'GIB.N',
'CSGP.OQ',
'UNF.N',
'TOY.TO',
'CGO.TO',
'FA.OQ',
'ECL.N',
'ARMK.N',
'SAIC.OQ']