Hi,
I have managed to answer the question by my self.
If I have an ultimate parent ID given, the followoing screen works to my knowledge:
syntax = 'SCREEN(U(IN(Equity(active,public,primary))), IN(TR.UltimateParentId, "%s"))'%(ult_id)
fields = ['TR.CommonName']df,e = ek.get_data(syntax, fields)
I still would like to thank @jonathan.legrand for his help.
Retrieve inactive related companies

Hello guys,
I couldn't find a similar question.
Let's say I would like to retrieve a list of all related companies of a RIC.
For that purpose I have built the following formula:
equity, e = ek.get_data(ric, ['TR.RelatedOrgId', 'TR.RelatedOrgName', 'TR.RelatedOwnPct', 'TR.RelatedOrgType'])
As I expected, I have recieved a very well dataframe with related companies. However, to my best knowledge, the dataframe doesn't contain inactive companies, to which the RIC was related in the past.
1. Is it possible to adjust the code, so that the query also includes inactive companies?
2. As an alternative: Is it possible to define a timeframe? For instance the related companies between 2005-2019?
Please let me know if I can improve my question.
Thank you in advance!
Best Answer
-
Hi @Statistik Dude ,
Have you tried using the search API? This article shows you how you could use it, and I think it fits your needs perfectly.
To add a time period to your EDAPI request, you can use the 'parameters' argument, e.g.:SPX = ek.get_data(instruments=".SPX", # Looking at the S&P 500, thus the ' SPX '; indecies are preceded by a full stop ' . '.
fields=["TR.CLOSEPRICE.timestamp",
"TR.CLOSEPRICE"],
parameters={'SDate': '2018-01-01',
'EDate': '2019-01-01',
'FRQ': 'D'}
)[0] # ' ek.get_data ' returns 2 objects, the 0th is the data-frame that we're interested in, thus the ' [0] '.
SPX = SPX.dropna() # We want to remove all non-business days, thus the ' .dropna() '.0
Answers
-
Hi,
I have managed to answer the question by my self.
If I have an ultimate parent ID given, the followoing screen works to my knowledge:
syntax = 'SCREEN(U(IN(Equity(active,public,primary))), IN(TR.UltimateParentId, "%s"))'%(ult_id)
fields = ['TR.CommonName']df,e = ek.get_data(syntax, fields)
I still would like to thank @jonathan.legrand for his help.
0 -
@Statistik Dude,Hello
Thanks for sharing your answer with the community!
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 687 Datastream
- 1.4K DSS
- 621 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 4 Trading API
- 2.9K Elektron
- 1.4K EMA
- 254 ETA
- 557 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 276 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 669 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 229 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛