import eikon as ek ek.set_app_key('My api key here') stocksList = ['RELI.NS'] code = 'TR.DilutedNormalizedEps' params = {'Period' : 'FY2020', 'Curn' : 'INR'} fDataFields = ek.TR_Field(code, params) tmpDf = ek.get_data(stocksList, fDataFields)[0]
For a deeper look into our Eikon Data API, look into:
Overview | Quickstart | Documentation | Downloads | Tutorials | Articles
import eikon as ek ek.set_app_key('My api key here') stocksList = ['RELI.NS'] code = 'TR.DilutedNormalizedEps' params = {'Period' : 'FY2020', 'Curn' : 'INR'} fDataFields = ek.TR_Field(code, params) tmpDf = ek.get_data(stocksList, fDataFields)[0]
@anugrah you didn't say what the error or issue was - but I am able to successfully run your query:
@anugrah Is this the first time this has happened? What version of the eikon library are you using (ek.__version__)? Also what version of python are you using? Also what variant of Eikon? The code should not be stuck for hours as there are server timeouts which would report back errors. Please can you provide more details and a screenshot of the behaviour if possible.
@jason.ramchandani I am able to run same code in jupyter notebook
@anugrah I'm sorry so it does work? where are you trying to run the code if not in Jupyter notebook?