How to pull organization id using debt ticker code

We are trying to pull organisation id's and company/issuer names from Eikon using the debt ticker code. Is there any function on excel or in the API that would allow us to do so.

For eg: HHYON - Hydro One
GEELYV - Volvo Car AB

Best Answer

  • chavalit-jintamalit
    Answer ✓

    Hi @MJarosz

    I think this code should work:

    Search for result

    #pip install refinitiv.dataplatform

    import refinitiv.dataplatform as rdp
    rdp.open_desktop_session('xxxxxxxx')

    df = rdp.search(query="HHYON", top=2000, view = rdp.SearchViews.SearchAll )
    df1 = df[df['RIC'].notnull()]
    df1.head(5)

    Filter for ticker = HHYON

    rics = df1['RIC'].tolist()
    fields = ['TR.TickerSymbol', 'TR.FiTicker','TICKER', 'GV1_TEXT', 'TR.CDSTicker', 'TR.CDSRefEntTicker', 'TR.TickerSymbolOld', 'TR.IssuerTickerCode', 'TR.TickerSymbolCode']
    df2,e = ek.get_data(rics, fields)
    df3 = df2[df2['TICKER']=='HHYON']
    df3.head()


    image

Answers