Sometimes suffvolmoneyness return data and sometimes not

Hi,

Sometimes I get data and sometimes I do not when using this function (found on the pages). Any ideas?

df, err = ek.get_data(RIC,["TR.SurfVolMoneyness.tenor","TR.SurfVolMoneyness.range",
"TR.SurfVolMoneyness"],{"Range":"50;200",
"Tenor":"1M;12M", "VolType":"MID"})

Best Answer

  • Alex Putkov.1
    Alex Putkov.1 ✭✭✭✭✭
    Answer ✓

    Add raw_output=True parameter as follows:

    ek.get_data([".FTSE"],["TR.SurfVolMoneyness.tenor","TR.SurfVolMoneyness.range", "TR.SurfVolMoneyness"],{"Range":"50;200", "Tenor":"1M;12M", "VolType":"MID"},raw_output=True)

    With raw_output=True get_data method returns raw JSON from the Web service providing the data as opposed to a tuple containing pandas dataframe and error when raw_output=False or omitted.
    What does get_data method return with raw_output=True?

Answers