Python to download Debt Structure with issuer and subsidaires bonds
Hi team,
Below debt structure sample doesn't apply to Sates Own enterprises like 1288.HK. It will show all it's ultimate parents bonds. 1038.HK is another example.
So, wonder is it any other sample can show how to get issuer and subsidaries bonds as same as Eikon Debt Structure of bonds. Thanks.
df = rdp.Search.search(
# The 'view' represents a specific domain of content we wish to search across.
view = rdp.SearchViews.GovCorpInstruments,
# The 'filter' parameter is a powerful, criteria-based, syntax that allows us to filter for specific
# results.
#
# Note: The expression below utilizes a convenient, modern Python syntax called
# 'String interpolation'.
#
# This feature utilizes f-strings to embed arguments within the string result.
# Refer to the site: https://www.programiz.com/python-programming/string-interpolation for more
# details.
#
# Disclaimer: The following expression includes bonds that are in 'default'. If you choose to ignore
# these from your result set, simply modify the expression below as follows:
#
# "..not(AssetStatus in ('MAT' 'DEF'))"
#
filter = f"ParentOAPermID eq '{org_id}' and IsActive eq true and not(AssetStatus in ('MAT'))",
# Define the upper limit of rows within our result set. This is a system imposed maximum value.
top = 10000,
# The 'select' parameter determines the fields of interest in our output. The logic below takes our
# list of properties defined and creates the appropriate comma-separated list of properties required
# by the service.
select = ','.join(properties),
# The navigator will list all the unique currencies associated with the result set. Used below for
# conversion.
navigators = "Currency"
)
# Bonds represents a simple reference to our data
bonds = df.data.df
# When using search, the order of the columns in our result set are not ordered based on the properties
# defined within the above 'select' statement. As a result, I will re-order them for a more intuitive
# display.
#
# Before I reorder them, I will need to ensure our columns exist.
populate_empty_columns(bonds)
# Now we can re-order the columns
bonds = bonds[properties]
bonds
Regards,
Sunny
expect to download as DS
Sample code download DS
Best Answer
-
Try changing the filter expression:
filter = f"ParentOAPermID eq '{org_id}' and IsActive eq true and not(AssetStatus in ('MAT'))",
to
filter = f"ParentOrgID eq '{org_id}' and IsActive eq true and not(AssetStatus in ('MAT'))",
0
Answers
-
Hi @nick.zincone,
# 1038.HK orgID
orgId = '4295871038'
filter = f"ParentOrgID eq '{org_id}' and IsActive eq true and not(AssetStatus in ('MAT'))",
your above suggested code return zero bond but in Eikon it is 5 Bonds from 1038.HK subsidiaries.
Could advise it? many thanks.
Regards,
Sunny0 -
I sense there may be many questions related to this topic and Search. What I would first recommend is to review the Search Article on this topic. It will provide some guidance as to work with Search to get the most out of it. For example, when I typically want to know if there is any information related to anything, I utilize the query parameter, i.e.
response = rdp.Search.search("4295871038")
or
response = rdp.Search.search(
query = "4295871038"
)You can see some general information returned. You can utilize the debugging feature ("_debugall") as outlined within the article to help understand all properties. However, there does not appear to be any listed bonds. This is where I would reach out to the Refinitiv Helpdesk to confirm if the content is available.
0 -
@nick.zincone , will read the link you attached. Thank you.
0 -
Hello Team, I cannot create a script that works when following https://developers.refinitiv.com/en/article-catalog/article/debt-structure-analysis-on-an-organizational-level
Can you please provide a full script that gets the list of company's debt by maturity, currency and cost of debt (kd) MRFG3.SA similar to what is shown in Debt Structure? Thank you.
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 中文论坛