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
23 7 2 9

get_data raw_output problems

Hello,

The following line returns the error ValueError: too many values to unpack (expected 2).

data, err = ek.get_data(instruments="IBM", fields="TR.PriceClose", raw_output=True)

It seems to be a problem with the raw_output as it works if it's set to False. I'm running eikon version 0.1.9, python 3.6.1

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apinda-raw
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.

1 Answer

· Write an Answer
Upvotes
Accepted
17.1k 80 39 63

Hi @tomas.kourim,

I can see that when raw_output is set to False, the get_data() call returns a tuple (data,err). However, when set to True, the get_data() returns a dict.


img1.png (13.2 KiB)
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.