Client wanted to get the TREE Structure for Multiple Companies via Codebook

Already provided

import refinitiv.data as rd


rd.open_session()


df = rd.get_data(


universe = ['HSBA.L'],


fields = [


'TR.RelatedOrgId',


'TR.RelatedOrgName',


'TR.RelatedOrgType'


]


)



display(df)


However its only for single companies, not really sure how to do this on Codebook then, appreciate your help in advance.

Best Answer

Answers

  • Hello @lhoyd.castillo

    The rd.get_data() method support list of RICs. The client can use the following Python statement to view the method's help document.

    help(rd.get_data)

    rd-get.png

    I did a quick test with this code:

    rd.get_data(
        universe=['LSEG.L', 'VOD.L'],
        fields = ['TR.RelatedOrgId','TR.RelatedOrgName','TR.RelatedOrgType']
    )

    Result:

    result.png