How to retrieve all ric names of .NIFTY500?

Best Answer

  • Jirapongse
    Answer ✓

    @anbezhilasokan.frm

    Please try the following code:

    df, err = ek.get_data(instruments=["0#.NIFTY500"], fields=['DSPLY_NAME'])
    df

    The output looks like:

    imageAll RIC names are in the Instrument column.

Answers

  • Hi, I am using the same but it isn't working, the same works for "0#.SET100" so the connectivity with the API is sorted.

    Works: df, err = ek.get_data(instruments=["0#.SET100"], fields=['DSPLY_NAME'])

    Doesn't work: df, err = ek.get_data(instruments=["0#.NIFTY500"], fields=['DSPLY_NAME'])

    Please help.