Upgrade from Eikon -> Workspace. Learn about programming differences.

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 0

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.

pythonworkspace#technologycodebookrefinitiv-data-libraries
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
18.9k 85 39 63

Hi @lhoyd.castillo

Can you please explain what "TREE Structure" means?

This is what I see:

1720643540472.png


1720643540472.png (37.7 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
27k 65 17 14

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


rd-get.png (30.1 KiB)
result.png (40.5 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.