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 luis22 · Aug 28, 2018 at 08:45 AM · pythonpython apipython api eikonmergersacquisitions

Get All Mergers and Acquisitions on the Python API

I am trying to get All Mergers and Acquisitions on the Python API, I am wondering if there's a Symbol or instrument to just get all of them, this is the code I am using at the moment.

names_list = ['TR.DealDate;TR.DealStatus;TR.DealAcquiror;TR.DealTarget;TR.DealType;TR.DealSynopsis; TR.DealAnnouncementDate;TR.DealPercentSought;TR.DealPercentOwned, ']
start_date = str(20060101)
end_date = str(20180812)
df, error = ek.get_data(ALLCOMPANIESCODEHERE, names_list, {"SDate": start_date, "EDate": end_date}) cheers.

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.

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Alex Putkov. · Nov 20, 2018 at 06:03 PM

@luis22
The deals screener has been released recently, which allows you to search for M&A deals based on a criteria set. To explore the deals screener click on the Screener button under Thomson Reuters tab in Excel ribbon. The screener defaults to the universe of public companies. You want to change the universe to Deals and then follow the wizard to construct the screener expression and insert it into Excel worksheet. Then you can copy & paste the screener expression into your Python script. E.g. the following call returns all deals announced between two dates:

ek.get_data("SCREEN(U(IN(DEALS)),BETWEEN(TR.MnAAnnDate,20181101,20181103))",["TR.MnAAnnDate","TR.MnATarget","TR.MnATargetPermId","TR.MnAAcquiror","TR.MnAAcquirorPermId"])
See also my comments on this thread.
Comment
luis22

People who like this

1 Show 3 · 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
luis22 · Dec 20, 2018 at 10:19 AM 0
Share

Thanks a lot for this answer Alex. I just trying to add one more criteria to that search (Just want to get UK deals between a period of time) and I don't have available Excel to get the query so I am trying to build it manually, What I am doing wrong here?

ek.get_data("SCREEN(U(IN(DEALS)),BETWEEN(TR.MnAAnnDate,20181101,20181103),IN(TR.MnATargetNation.code='GB'))",["TR.MnAAnnDate","TR.MnATarget","TR.MnATargetPermId","TR.MnAAcquiror","TR.MnAAcquirorPermId"]))

Thanks in advance!

avatar image
REFINITIV
Alex Putkov. ♦♦ luis22 · Dec 20, 2018 at 04:33 PM 1
Share

TR.MnATargetNation.code is not a valid criteria in deals screener expression. Here's the expression that returns deals announced between two dates where either the target or the acquirer is headquartered in the UK:
"SCREEN(U(IN(DEALS)),BETWEEN(TR.MnAAnnDate,20181101,20181203),IN(TR.MnANationHQ(DealPartRole=T:A),'GB'))"
I suggest to always construct the screener expression using the screener wizard in Excel and then copy & paste it from =TR function in Excel into Python script.

avatar image
luis22 Alex Putkov. ♦♦ · Dec 21, 2018 at 05:57 AM 0
Share

Your answers have been extremely helpful, thanks very much Alex.

avatar image
REFINITIV
Answer by Zhenya Kovalyov · Aug 28, 2018 at 09:43 AM

@luis22, unfortunately not, you will have to build the list of companies manually.

Comment
luis22

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
luis22 · Aug 28, 2018 at 10:23 AM 0
Share

Hi @Zhenya Kovalyov , So there is not a simple way of just getting all the most recent deals of the market? as you do here in your web app:

screen-shot-2018-08-28-at-152242.png (431.0 KiB)
avatar image
REFINITIV
Alex Putkov. ♦♦ luis22 · Aug 28, 2018 at 01:45 PM 1
Share

The capability to search for deals is coming up shortly to the Screener app in Eikon Excel and to Eikon Data APIs. I'm afraid I don't have the exact timeframe, but it should be imminent.

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 >
8 People are following this question.

Related Questions

How to retrieve different Peer Sets and fields?

EIKON API PYTHON AUTOMATION

How to get historical bid offer prices and vols of option chains using the Python API?

Request CF_LAST in a particular currency.

Find or calculate intraday volatility.

  • 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