Hi, I am using below code in python to pull the peers list for the given isin list. The api return more number of peers for each isin and there is no mapping for isin and peers. In the response, i need only top 5 peers for each isin and i want to map which peers belong to which isin. How to update the code ?
for isin in isin_list: peer_list.append('Peers(' + isin + ')')
df1, err = ek.get_data(instruments=peer_list, fields=["TR.PrimaryInstrument", "TR.ExchangeTicker","TR.CompanyName", "TR.ISIN"],raw_output=False);