I'm trying to obtain a list of advisors and their roles in M&A deals. How can I be sure to assign th
I'm trying to obtain a list of advisors and their roles in M&A deals. I have code to pull the deals, but the advisors and the roles come in a concatenated field. Some advisors have multiple roles. If the first advisor has two roles and the second advisor has one role, how can I be sure to assign the roles correctly?
In the Screener App in Eikon, I can change the setting to display managers as row. Can I create a pandas DataFrame through the API to replicate that option?
For example:
Advisor Names:
'BNP Paribas SA|UBS Investment Bank|Nordea'
are associated with the following roles:
'Advisory|Advisory|Arranged Financing|Advisory'. In this case, how could I be sure which advisor arranged financing?
Here's the code I have to pull the deals:
df = pd.DataFrame()
errs = []
for y in range(1980,2023):
print(f'processing {y} ..............')
deal,err = ek.get_data("SCREEN(U(IN(DEALS)),BETWEEN(TR.MnAAnnDate,"+str(y)+"0101,"+str(y)+"1231))",
fields = ["TR.MnASDCDealNumber","TR.MnADealValue(Scale=9)","TR.MnAAnnDate",
"TR.MnAAcquirorFinAdvisor(Concat='|')","TR.MnAAcquirorFinAdvisorParentLong(Concat='|')",
"TR.MnAAcquirorFinRole(Concat='|')"])
errs.append(err)
if deal is None:
print(f'no data for {y} ..............')
continue
# remove deal values with <NA>
deal = deal[(deal['Deal Value'].notna())]
# remove deals with no financial advisors
deal = deal[(deal['Acquiror Financial Advisors Name'].notna())]
df = pd.concat([df,deal],ignore_index=True)
Best Answer
-
It can be used like this:
deal,err = ek.get_data("SCREEN(U(IN(DEALS)),BETWEEN(TR.MnAAnnDate,"+"20231201,"+"20231231))",
fields = ["TR.MnASDCDealNumber","TR.MnADealValue(Scale=9)","TR.MnAAnnDate",
"TR.MnAAcquirorFinAdvisor",
"TR.MnAAcquirorFinAdvisor.AdvisorCode",
"TR.MnAAcquirorFinRole",
"TR.MnAAcquirorFinRole.AdvisorCode",
])
deal1
Answers
-
Thank you for reaching out to us.
I think you can use the TR.MnAAcquirorFinAdvisor.AdvisorCode, and TR.MnAAcquirorFinRole.AdvisorCode fields for mapping.
1 -
Thanks for pointing me to those codes. Sorry for my ignorance as I am just starting to use the eikon API. Can you provide me a bit more guidance on how to use TR.MnAAcquirorFinAdvisor.AdvisorCode, and TR.MnAAcquirorFinRole.AdvisorCodeor where I might turn to for resources on how to use them? In the Screener app, I can change the setting to display manager as row. That is essentially what I'm trying to create via the API and save in a pandas DataFrame.
0 -
Thanks for the guidance. That is what I tried and the API only returns one row for each deal. I use the code provided and then identify the deal posted in the screenshot. I only find one row for that deal.
deal2,err = ek.get_data("SCREEN(U(IN(DEALS)),BETWEEN(TR.MnAAnnDate,"+str(2023)+"1214,"+str(2023)+"1214))",
fields = ["TR.MnASDCDealNumber",
"TR.MnADealValue(Scale=9)","TR.MnAAnnDate",
"TR.MnAAcquirorFinAdvisor",
"TR.MnAAcquirorFinAdvisor.AdvisorCode",
"TR.MnAAcquirorFinRole",
"TR.MnAAcquirorFinRole.AdvisorCode"])0 -
They are these rows.
0 -
Your careful study and attention to detail were clear, and they gave your arguments a lot of weight io games unblocked
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛