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

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @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.