Why does not all chain ric work in get data in python?

My code:

import eikon as ek

RICS = "0#.OSEBX"

RICS2 = "0#.EQUITY.OL"

ek.set_app_id('')

NokkelData, err = ek.get_data(RICS,["TR.CommonName"])

NokkelData2, err = ek.get_data(RICS2,["TR.CommonName"])
Why does only "0#.OSEBX" work and not "0#.EQUITY.OL"?
Both work i excel. I also want to get data from "0#.MERKUR.OL"

Best Answer

  • @bendik.ronning, i can reproduce your issue with the correct chain names, here is a workaround. You will need to include an additional get_data() call that will give you the RIC names. In the meantime, I will report this to the product manager:

    df, e = ek.get_data('0#EQUITY.OL', ['X_RIC_NAME'])
    df2, e = ek.get_data(instruments=df['Instrument'].tolist(), fields=['TR.CompanyName'])

    image

Answers