Retrieve the Parent equity RIC with bond ISIN: Incomplete lists

Hi all,

I am trying to retrieve the parent euqity RIC using the bond ISIN. Following the previous tasks and questions proposed like Retrieval of Parent equity close prices via Bond RIC - Forum | Refinitiv Developer Community and Retrieval of Equity Instrument Data via Bond Instrument Identifier - Forum | Refinitiv Developer Community I use the following codes:

df = pd.read_excel(' ')
print(df[:3]

parent = df['Parent Immed Org ID'].astype(str).tolist()
df2, e = ek.get_data(parent, ['TR.RIC','TR.PrimaryQuote','TR.OrganizationID']

Most of the equities RIC are obtained, however, some of the RIC are missing. For example, the bond ISIN is 'AT0000A2JSN2'( with Isser Name is 'EVN AG', whose Parent Immed Org ID is '105701684'), whose equity RIC can not be found.

Is there any other way that I can get these RICs?

Many thanks.

Best Answer

  • Jirapongse
    Answer ✓

    @jiayin.meng.20

    Thank you for reaching out to us. There are a lot of IDs.

    df, err = ek.get_data(['AT0000A2JSN2'],['TR.UltimateParentId', 
                                         'TR.FiParentOrgID', 
                                         'TR.FiIssuerOrganization',
                                         'TR.FiParentImmedOrgID','TR.RIC'])
    df

    1707725549204.png

    Then, I used those IDs to get TR.RIC.

    df, err = ek.get_data(["5000003197","109442","10024","105701684"],
                          ["TR.RIC","TR.CommonName","TR.IsPublic"])
    df

    1707725663611.png

    As far as I know, RICs are available for public organizaions.

Answers

  • Hi Jiralongse,


    Thank you for your response. May I ask if there is a way that I can only retrieve RICs of common shares (ordinary shares) and exclude the preference shares? Many thanks.

  • @jiayin.meng.20

    Can you provide sample instruments that return preference shares?

    Typically, the get_data method retrieved data by using instruments and fields. Each field has its own parameters. You can use the Data Item Browser to search for fields and parameters.

    Otherwise, you can use the search feature in the Refinitiv Data Library for Python to search for instruments. For more information, please refer to this Building Search into your Application Workflow article.

    You can also refer to the sample code on GitHub.

  • Hi @Jirapongse


    For example, I used your suggested code to retrieve RICs like follows:

    df = pd.read_excel('')
    print(df[:3])


    parent = df['Issuer Organization ID'].astype(str).tolist()
    df2, e = ek.get_data(parent, ['TR.RIC','TR.PrimaryQuote'])


    However, I notice that for bond isin code 'BRTRPLDBS071','BRTRPLDBS089',whose issuer name is 'CTEEP - COMPANHIA DE TRANSMISSAO DE ENERGIA ELETRICA PAULISTA' with issuer Organization ID as '137140'. Its RIC retrieved from the API is 'TRPL4.SA', which is a referred stock RIC, however, when I find it by the issuer name through workspase, the listed RIC is 'TRPL3.SA', which is ordinary stock RIC. Is there a way to only get the ordinary stock RIC through the code?


    Thanks!

  • Hi @jiayin.meng.20

    I recommend you to use rd library where you can use search to get more customized results that you are after:

    import refinitiv.data as rd
    from refinitiv.data.content import search
    rd.open_session()

    isin = 'BRTRPLDBS089'
    response1 = search.Definition(
    filter = f"ISIN eq '{isin}'",
    select = 'IssuerOAPermID').get_data()

    IssuerOAPermID = response1.data.raw['Hits'][0]['IssuerOAPermID']

    response2 = search.Definition(
    filter = f"IssuerOAPermID eq '{IssuerOAPermID}' and RCSAssetCategoryLeaf eq 'Ordinary Share'",
    select = 'RIC,RCSAssetCategoryLeaf',
    top=1).get_data()

    response2.data.df

    1707925673662.png