DSCREEN Close Price filed
Greetings,
I am currently advancing my project focused on companies undergoing delisting. Utilizing the DSCREEN application, I have successfully compiled a comprehensive list of companies that have been delisted, along with detailed information regarding the transactions that led to their delisting. My next objective is to ascertain the closing price for each of these companies at the end of the trading day immediately following the announcement of the deal responsible for their delisting.
Could you advise on the best approach to obtain this specific data? Thank you in advance!
Here is a code I'm using:
syntax = "SCREEN(U(IN(DEALS)/*UNV:DEALSMNA*/), BETWEEN(TR.MnAAnnDate,20040401,20240219)/*dt:Date*/, IN(TR.MnANationHQ,""US""), TR.MnAIsGoingPrivate==true, IN(TR.MnAStatus,""C""), CURN=USD")
fields = [
"TR.MNASDCDealNumber",
"TR.MnAAnnDate",
"TR.MnAEffectiveDate",
"TR.CLOSEPRICE(SDate=0CY)",
"TR.MnARankDate",
"TR.MnAStatus",
"TR.MnARankValueIncNetDebt(Curn=USD,Scale=6)",
"TR.MnATarget",
"TR.MnATargetPermId",
"TR.MnATargetMacroInd",
"TR.MnATargetMidInd",
"TR.MnATargetNation",
"TR.MnAAcquiror",
"TR.MnAAcquirorPermId",
"TR.MnAAcquirorNation",
"TR.MnATargetFinAdvisor(Concat='|')",
"TR.MnAAcquirorFinAdvisor(Concat='|')",
"TR.MNADealId",
"TR.MnAIsGoingPrivate",
"TR.MnAHistoryEventOfferPrice(Curn=USD,Concat='|')
]
Best Answer
-
Thank you for reaching out to us.
You need to call another get_data method with the PermIDs to get close prices. For example, the code below gets close prices for the "Target PermID" column.
df, err = ek.get_data(syntax, fields)
permIDs = df["Target PermID"].dropna().astype('int64').astype('string').to_list()
df1, err = ek.get_data(permIDs,
['TR.PriceClose.Date','TR.PriceClose',
'TR.ClosePrice.Date','TR.ClosePrice',
'TR.CommonName','TR.RIC'])
df10
Answers
-
Hi, @Jirapongse, thank you for your prompt response. I was wondering if it would be possible to append the "price close" data the next trading day following the announcement to the current table.
0 -
The output of that snippet code is:
Do you mean merging this table and the deal screener table by using the the "Target PermID" column, like this?
0 -
Yes, merging both outputs so it has the same columns as before but also additional columns with a close price and its date. How can I achieve that?0
-
@Jirapongse and also how to specify date like announcement date + 1(next day). Thank you!0
-
You can use the merge function to merge dataframe. You may need convert the PermID to strings before merging.
Regarding the announcement date + 1(next day), please contact the helpdesk support team via MyRefinitiv and ask for the =TR formula used in Eikon Excel which can be used to retrieve the required data.
After getting the formula, it can be converted to Python code.
0 -
Greetings, @Jirapongse!
I have recently addressed an issue through MyRefinitiv, inquiring about the feasibility of merging the table containing close prices with the deal screener table utilizing the "Target PermID" column or any alternative field. However, I was informed that such a merger is not possible. Could you please explain how you managed to achieve the results displayed in your second screenshot?
Thank you in advance!
0 -
I used the merge function to merge two data frames by using the "Target PermID".
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 中文论坛