For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
1 0 0 0

Eikon data API fetching issue in python. code is stuck for hours without returning anything (No error , No returned data )

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]
eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
6.7k 8 6 7

@anugrah you didn't say what the error or issue was - but I am able to successfully run your query:


1614607071626.png (68.6 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

My code is stuck for hours without returning anything

Upvotes
1 0 0 0

@jason.ramchandani My code is stuck for hours without returning anything


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
6.7k 8 6 7

@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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
1 0 0 0

@jason.ramchandani I am able to run same code in jupyter notebook


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

@anugrah I'm sorry so it does work? where are you trying to run the code if not in Jupyter notebook?

Click below to post an Idea Post Idea