question

Upvotes
3 0 0 2

Is it possible to get information of all share classes of a company using Refinitiv.Data on Python

Hi, I'm wondering if it's possible to get the information (e.g. price, volume) of another share class given a specific share class.


say, GOOGL.O, Google, on GOOGL.O BUS page, there are 6 types of shares, and they're

GOOGL.O, GOOG.O, GOGL34.SA, GOGL35.SA, GOOGLm.BA

say given the RIC code - GOOGL.O, is it possible to obtain all other 4 RIC codes listed above via any functions on Refinitiv.Data? Also, after founding those, is it possible to also obtain the information like price & volume for those shares?


Does anyone have any idea on this question? Thanks.


1726467446742.png

python#technology#contentdatafundamental-data
1726467446742.png (110.9 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.

1 Answer

· Write an Answer
Upvotes
85.1k 290 53 77

@Tim Lai

Thank you for reaching out to us.

This could be the search API.

I am using the LSEG Data Library for Python and the code looks like this:

df = ld.discovery.search(
        view = ld.discovery.Views.EQUITY_QUOTES,
        filter = f"PrimaryRIC eq 'GOOGL.O' and AssetState eq 'AC'",
        select = "DocumentTitle,AssetCategory,RIC,RCSAssetCategoryName",
        top = 500
    )
df

The output is:

1726557689921.png

You may add other filters to get the required output. You can use the below code to get a list of fields in the EquityQuotes view.

response = search.metadata.Definition(
    view = search.Views.EQUITY_QUOTES  # Required parameterc
).get_data()


response.data.df

All examples are available on GitHub. You can also refer to the Building Search into your Application Workflow article.


1726557689921.png (45.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.

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.