Eikon API by giving condition as = R

Hi Team,

Can you please help me to pull data from Eikon API by giving condition as = R and it should pull Record Type of 21 from that, Example RIC(DJX50N1W=R).

Best Answer

Answers

  • Hello @Shalini.YPatted

    The code should be like this:

    import refinitiv.data.eikon as ek
    ek.set_app_key('APP_KEY') #'DEFAULT_CODE_BOOK_APP_KEY' if you are on CodeBook


    df, err = ek.get_data(['DJX50N1W=R'], [ 'RECORDTYPE'])
    df

    Result:

    result.png

    Please note that you can use the Data Item Browser (Seach "DIB" on your Eikon/Workspace), then input your item code (RIC Code) and you can search all available fields that the item provide as follows:

    dib.png

    You can find more detail about the Data Item Browser app from this https://developers.lseg.com/en/video-catalog/data-item-browser video.

  • Hi Wasim,

    Thanks for checking.

    Any RIC that ends with = R, I want code to pick = R and produce record type for all of those RICs

    is it possible to get the output from Eikon API by giving condition.

    Example RIC (DJX50N1W=R) which ends with = R.