How to query Python API for news for M&A events

Hi,

Trying to use the Eikon API via python with query feature. How can one get all english news as per the query to get M&A upcoming or announced news through the API. For example, the below query get all topics news in english. Any similar query for events news in English would be very helpful.

query = 'Topic:TOPALL and Language:LEN'

Regards,

Puneet

Best Answer

  • Zhenya Kovalyov
    Answer ✓

    Try this:

    Topic:MRG ANDTopic:DEAL1 AND Topic:BACT AND Language:LEN AND Source:RTRS

    This will get you:

    • MRG - Mergers/Acquisitions/Takeovers
    • DEAL1 - Deals
    • BACT - Corporate events

    You can play with different topic codes by pressing F9 in Eikon. It opens the News Monitor app, where you can build queries and reuse them in the API.

    On a separate note, check out following codes:

    • Report:TOP/DEALS
    • Topic:INVS
    • Topic:CFIN

    Also, here is a sample jupiyter notebook that shows you how to work with the news API on TR-API-Sample GitHub group.

Answers