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]
Upgrade from Eikon -> Workspace. Learn about programming differences.
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]
Thank you for your participation in the forum. Are any of the replies below satisfactory in resolving your query? If yes please click the 'Accept' text next to the reply that best answers your question. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.
Thanks,
-AHS
Hi,
Please let us know if you have any updates on this question.
If it is still an issue, please post again to offer further insight into your question.
Regards,
AHS
@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?