Identifying affected RIC for news headline or story

Options

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.

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @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.