LTGMean is returning

The get_data function is returning <NA> values to me for the LTGMean function.

I am running the commands

var1,err = ek.get_data('CHMB.NS', 'TR.LTGMean(Period=FY1)', parameters={'SDate':'2021-02-08', 'EDate':'2021-02-08','FRQ': 'D'})
print(var1)

The output is <NA>. However, when we get the data in excel, I am getting the values.

Please suggest how can I get the data here.

Best Answer

  • @anshulmlhtr There does not seem to be a value for the RIC you are looking for - this is because this data item is looking at the average of broker EPS estimates over 3-5 years - in the case of CHMB.NS there are only forecasts for 2 years ahead.

    This field does populate where there are such estimates - please see:

    var1, err = ek.get_data('VOD.L', ['TR.LTGMean(SDate=0,EDate=-9,Frq=M).date','TR.LTGMean(SDate=0,EDate=-9,Frq=M)','TR.LTGMean(SDate=0,EDate=-9,Frq=M).description'])

    var1

    image

    I hope this can help.