Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon Data APIs /
avatar image
Question by alex.yermolayev · Mar 12, 2020 at 12:18 PM · pythoneikon data apinews headlineissuance

Trying to reproduce new issues in the news tutorial

Hello! I am trying to reproduce the tutorial from the Developer Website with no success:

https://developers.refinitiv.com/eikon-apis/eikon-data-api/learning?content=15351&type=learning_material_item

The code itself:

from datetime import date

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

Error message:

2020-03-12 13:14:43,924 P[17328] [MainThread 13732] Backend error. Failed to deserialize backend response. Expected valid JSON. Error: invalid character 'i' looking for beginning of value

Could you please help?

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by umer.nalla · Mar 12, 2020 at 04:00 PM

Hi @alex.yermolayev

I just tried the following as per the tutorial and it works Ok

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

If I add the \" back in, then I get the same error as you do.


Comment
alex.yermolayev

People who like this

1 Show 2 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
alex.yermolayev · Mar 12, 2020 at 04:04 PM 0
Share

Many thanks, Umer @

I saw the error and corrected it. I downloaded the source code from the link on github, I guess the string formatting is not correct there.

avatar image
REFINITIV
umer.nalla ♦♦ alex.yermolayev · Mar 12, 2020 at 04:18 PM 0
Share

Hi @alex.yermolayev

Apologies for the problem and thanks for pointing out the differences on github. I have alerted the example owner.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
10 People are following this question.

Related Questions

Getting CA.C fields via Eikon Data API

When will bond search with Python be available in Eikon DAPI?

From full bond description to a bond ISIN with Python

API Proxy not available: 503 error code

Eikon Python API Empty Response for Private Company Financial Data - e.g. TR.Revenue, TR.GrossProfit

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges