Backend Error Failed to Deserialize backend Response

I am facing the same problem as mentioned in this thread. https://community.developers.refinitiv.com/questions/29948/eikon-data-api-backend-error-failed-to-deserialize.html

pierre.faurel suggestion to use single quotes ' ' does not generate errors but the response is empty unlike the NEWS monitor app in EIKON desktop application.

It is also surprising the high quality EIKON tutorial series uses below syntax which is also generate errors. https://developers.refinitiv.com/eikon-apis/eikon-data-api/learning?content=15351&type=learning_material_item

q = "Product:IFREM AND Topic:ISU AND Topic:EUB AND (\"PRICED\" OR \"DEAL\")"

Welcome!

It looks like you're new here. Sign in or register to get started.

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @vijay.shah

    Yes, you are correct. The code in the tutorial returns an error. I will contact the product team to verify it.

    The solution that I can think of is using the triple backslashes to escape the double-quotes.

    from datetime import date

    start_date, end_date = date(2016, 1, 1), date.today()
    q = "Product:IFREM AND Topic:ISU AND Topic:EUB AND (\\\"PRICED\\\" OR \\\"DEAL\\\")"
    headlines = ek.get_news_headlines(query=q, date_from=start_date, date_to=end_date, count=100)
    headlines.head()

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.