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

question

Upvotes
Accepted
2 1 1 3

Problems with EIKON

Hi there,


Whats going on with the API for Python, seems suddenly to throw a value error, for basicly any kind of data request:


From Amazon EC2

__________


File "<ipython-input-43-988a95749b7f>", line 256, in <module>

priceStock, error = ek.get_data(["SMSWLD.DE"], fields=['TR.PRICECLOSE','TR.PRICECLOSE.date','TR.PRICECLOSE.calcdate'],parameters={'SDate':'2018-09-03','EDate':last_nav_date,'Frq':'d', 'CURN':'DKK'})


File "C:\ProgramData\Anaconda2\lib\site-packages\eikon\data_grid.py", line 151, in get_data

result = eikon.json_requests.send_json_request(DataGrid_UDF_endpoint, payload, debug=debug)


File "C:\ProgramData\Anaconda2\lib\site-packages\eikon\json_requests.py", line 86, in send_json_request

result = response.json()


File "C:\ProgramData\Anaconda2\lib\site-packages\requests\models.py", line 896, in json

return complexjson.loads(self.text, **kwargs)


File "C:\ProgramData\Anaconda2\lib\json\__init__.py", line 339, in loads

return _default_decoder.decode(s)


File "C:\ProgramData\Anaconda2\lib\json\decoder.py", line 364, in decode

obj, end = self.raw_decode(s, idx=_w(s, 0).end())


File "C:\ProgramData\Anaconda2\lib\json\decoder.py", line 382, in raw_decode

raise ValueError("No JSON object could be decoded")


ValueError: No JSON object could be decoded

#technology#productpython api
icon clock
10 |1500

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

Upvote
Accepted
5.5k 18 2 7

Hi @me39 ,


I have tried your code and can confirm that is working, see the output below:

screenshot-2023-04-11-at-125800.png


Are you able to try this code in a local environment just to check where the issue is coming from?


Best regards,

Haykaz


icon clock
10 |1500

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

Upvotes
2 1 1 3

Thanks, it´s solved. Just a simple bug on my part.

icon clock
10 |1500

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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