How to get ISIN codes from Chain RIC

image

We try to get ISIN codes from ChainRIC in Python.

When we run following code but returned error.

Does Python support get data by ChainRIC ?

-----------------------------------------------------------------------

data,err = ek.get_data('0#GBBMK','TR.ISIN')
data.head()

-----------------------------------------------------------------------

Best Answer

  • Jirapongse
    Jirapongse admin
    Answer ✓

    @KA27

    The correct RIC could be 0#GBBMK= and I got the same result as yours.

    To get ISIN for RICs in that chain, I use the below code.

    data,err = ek.get_data('0#GBBMK=',['DSPLY_NAME'])
    ricList = data['Instrument'].tolist()
    isin = ek.get_symbology(ricList, from_symbol_type="RIC", to_symbol_type="ISIN", bestMatch=True)
    isin

    First, I use get_data to retrieve a list of RICs in that chain and then use get_symbology to convert RICs to ISINs. The output is:

    image