Upgrade from Eikon -> Workspace. Learn about programming differences.

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 0

Identifying affected RIC for news headline or story

Hello,

I have been trying to extract news from Eikon via the API.

By using Python with ek.get_news_headlines and ek.get_news_story, I am able to extract the news.

From News Monitor, I saw that Eikon has identified the affected RIC in one of the columns. E.g. in the screenshot below we can see MGM.N , TWNK.O being identified.

The idea is whenever I extract a news, I want to know the affected companies as well. Is there a way to extract these RICs?

1694581544588.png



Thank you.

#product#contentricsnews
1694581544588.png (145.0 KiB)
icon clock
10 |1500

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

1 Answer

· Write an Answer
Upvotes
Accepted
80.2k 258 52 75

@kian.liong.ang

Thank you for reaching out to us.

I checked and found that the desktop session (Eikon and Refinitiv Workspace) doesn't provide this information in the news headlines response.

The following is the raw response from the get_news_headlines method.

{'displayDirection': 'LeftToRight',
   'documentType': 'Story',
   'firstCreated': '2023-09-13T06:22:04.126Z',
   'isAlert': False,
   'language': 'L:en',
   'reportCode': '',
   'sourceCode': 'NS:HINDUT',
   'sourceName': 'Hindustan Times',
   'storyId': 'urn:newsml:newswire.refinitiv.com:20230913:nNRApwo14w:2',
   'text': "Parle, IBM collaborate for biscuit brand's digital transformation via cloud, AI",
   'versionCreated': '2023-09-13T06:22:05.772Z'}

However, the platform session (Refinitiv Data Platform) can provide this information in the '_qcode' property.

{'storyId': 'urn:newsml:reuters.com:20230913:nNRApwo14w:1',
   'newsItem': {'_version': 1,
    'contentMeta': {'audience': [{'_qcode': 'NP:NWR2'},
      {'_qcode': 'NP:NWRM'},
      {'_qcode': 'NP:NWR1'},
      {'_qcode': 'NP:RFTHVS'},
      {'_qcode': 'NP:W2VEC'}],
     'creator': [{'_qcode': 'NS:HINDUT', '_role': 'sRole:source'}],
     'infoSource': [{'_qcode': 'NS:HINDUT', '_role': 'sRole:source'},
      {'_qcode': 'NS:HINDUT', '_role': 'sRole:origProv'}],
     'language': [{'_tag': 'en'}],
     'subject': [{'_qcode': 'G:5B'},
      ...
      {'_qcode': 'R:IBM.N'},
    ...],
     'urgency': {'$': 3}},
    'itemMeta': {'firstCreated': {'$': '2023-09-13T06:22:04.126Z'},
     'versionCreated': {'$': '2023-09-13T06:22:05.772Z'},
     'title': [{'$': "Parle, IBM collaborate for biscuit brand's digital transformation via cloud, AI"}]},
    'assert': [{'_qcode': 'G:5B'},
     ...]}},

You can contact your Refinitiv account team or sales team for more information regarding the Refinitiv Data Platform product.

icon clock
10 |1500

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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