How to get 'CF_LAST', 'DIVIDEND', 'TR.IVIntrinsicValue' fields for ALL Equity Symbols?

Best Answer

  • @anbezhilasokan.frm So this is a two step operation as the chain is not being resolved directly in the get_data function that contains non-realtime fields. Pls try:

    df, err = ek.get_data(['0#A.NS'],'CF_NAME')
    df

    image

    this chain is resolved with only realtime fields. You can then use the instrument column in the second API call:

    df1,err = ek.get_data(df['Instrument'].tolist(),['CF_LAST','DIVIDEND','TR.IVIntrinsicValue'])
    df1

    image

    I hope this can help.