Retrieve the Parent equity RIC with bond ISIN: Incomplete lists

Hi all,
I am trying to retrieve the parent euqity RIC using the bond ISIN. Following the previous tasks and questions proposed like Retrieval of Parent equity close prices via Bond RIC - Forum | Refinitiv Developer Community and Retrieval of Equity Instrument Data via Bond Instrument Identifier - Forum | Refinitiv Developer Community I use the following codes:
df = pd.read_excel(' ')
print(df[:3]
parent = df['Parent Immed Org ID'].astype(str).tolist()
df2, e = ek.get_data(parent, ['TR.RIC','TR.PrimaryQuote','TR.OrganizationID']
Most of the equities RIC are obtained, however, some of the RIC are missing. For example, the bond ISIN is 'AT0000A2JSN2'( with Isser Name is 'EVN AG', whose Parent Immed Org ID is '105701684'), whose equity RIC can not be found.
Is there any other way that I can get these RICs?
Many thanks.
Best Answer
-
Thank you for reaching out to us. There are a lot of IDs.
df, err = ek.get_data(['AT0000A2JSN2'],['TR.UltimateParentId',
'TR.FiParentOrgID',
'TR.FiIssuerOrganization',
'TR.FiParentImmedOrgID','TR.RIC'])
dfThen, I used those IDs to get TR.RIC.
df, err = ek.get_data(["5000003197","109442","10024","105701684"],
["TR.RIC","TR.CommonName","TR.IsPublic"])
dfAs far as I know, RICs are available for public organizaions.
0
Answers
-
Thank you for your response. May I ask if there is a way that I can only retrieve RICs of common shares (ordinary shares) and exclude the preference shares? Many thanks.
0 -
Can you provide sample instruments that return preference shares?
Typically, the get_data method retrieved data by using instruments and fields. Each field has its own parameters. You can use the Data Item Browser to search for fields and parameters.
Otherwise, you can use the search feature in the Refinitiv Data Library for Python to search for instruments. For more information, please refer to this Building Search into your Application Workflow article.
You can also refer to the sample code on GitHub.
0 -
Hi @Jirapongse
For example, I used your suggested code to retrieve RICs like follows:
df = pd.read_excel('')
print(df[:3])
parent = df['Issuer Organization ID'].astype(str).tolist()
df2, e = ek.get_data(parent, ['TR.RIC','TR.PrimaryQuote'])However, I notice that for bond isin code 'BRTRPLDBS071','BRTRPLDBS089',whose issuer name is 'CTEEP - COMPANHIA DE TRANSMISSAO DE ENERGIA ELETRICA PAULISTA' with issuer Organization ID as '137140'. Its RIC retrieved from the API is 'TRPL4.SA', which is a referred stock RIC, however, when I find it by the issuer name through workspase, the listed RIC is 'TRPL3.SA', which is ordinary stock RIC. Is there a way to only get the ordinary stock RIC through the code?
Thanks!
0 -
I recommend you to use rd library where you can use search to get more customized results that you are after:
import refinitiv.data as rd
from refinitiv.data.content import search
rd.open_session()
isin = 'BRTRPLDBS089'
response1 = search.Definition(
filter = f"ISIN eq '{isin}'",
select = 'IssuerOAPermID').get_data()
IssuerOAPermID = response1.data.raw['Hits'][0]['IssuerOAPermID']
response2 = search.Definition(
filter = f"IssuerOAPermID eq '{IssuerOAPermID}' and RCSAssetCategoryLeaf eq 'Ordinary Share'",
select = 'RIC,RCSAssetCategoryLeaf',
top=1).get_data()
response2.data.df0
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
- 684 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 251 ETA
- 555 WebSocket API
- 37 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
- 275 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
- 643 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
- 228 TRKD
- 916 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
- 46 中文论坛