get_news_headlines : how to restrict to one stock

Hello,

I would like to restrict the "news headlines" returned by get_news_headlines only to the ticker I asked, would you have any tip on that ?

For example, when I do...

ek.get_news_headlines(query='R:ORAN.PA'+' AND Source:RTRS'+' AND LEN', count=100, date_from='2019-12-31', raw_output=False, debug=False)

...I find that some of the stories have several stocks tagged (for example urn:newsml:reuters.com:20200204:nL8N2A44KK:1) : what I'm looking for is essentially to restrict the results to stories where the only stock tagged is 'R:ORAN.PA'

Thanks,


Best Answer

Answers

  • Thanks @chavalit.jintamalit ! May you specify how you obtained that "EXAMPLES OF SEARCH SYNTAX AND OPERATORS" page ? Besides, I wondered whether there was a place where I could find the maximum information about search syntax (not just examples). I see for example that "AA" allows filtering on alerts, "ORDIMB" on the topic order imbalances... Thanks, Mathieu.

  • Hi @mathieu.duarte

    On Eikon Desktop, launch News Monitor app and press F1.

    image


    For list of TOPIC code, you can type in "TOPICS" on Eikon Search Bar and press enter.

    image


    If you still need further help on the content, you can contact Refinitiv Content Helpdesk at https://my.refinitiv.com/