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

Best Answer

  • nick.zincone
    nick.zincone admin
    Answer ✓

    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.

    image