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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
23 4 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-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythonnda-raw
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.

1 Answer

Upvotes
Accepted
9.7k 49 38 60

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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea