Convert Bonds Issued Amounts in EUR using exchange rate at Issue Date

Hi all, I would like to API request to retrieve a list of bonds, with the outstanding amounts converted to EUR based on the exchange rate as of the issue date.
Currently, the GOVSRCH function in Workspace performs conversions using the exchange rate as of the previous close.
Can you help me?
Best
Giacomo
Answers
-
Thank you for reaching out to us.
It may relate to the search API. Please refer to this Building Search into your Application Workflow article.
I found the IssueSizeEUR field in the GOV_CORP_INSTRUMENTS view.
df = ld.discovery.search( view = ld.discovery.Views.GOV_CORP_INSTRUMENTS, filter = "IsConvertible eq true", top = 100, select = "RIC,DocumentTitle,IssueSizeUSD,IssueSizeEUR,ISIN,IsConvertible,IssueDate") df
However, not all RICs has the IssueSizeEUR field. Therefore, we need to retrieve the exchange rates on the issue dates to calculate the outstanding amounts converted to EUR based on the exchange rate as of the issue date.
The code should look like this:
df = ld.discovery.search( view = ld.discovery.Views.GOV_CORP_INSTRUMENTS, filter = "IsConvertible eq true", top = 100, select = "RIC,DocumentTitle,IssueSizeUSD,IssueSizeEUR,ISIN,IsConvertible,IssueDate") #create a list of fields to retrieve TR.BIDPrice on the issue dates. bid_price_fields = df['IssueDate'].apply(lambda x: f"TR.BIDPrice(SDate={x.strftime('%Y-%m-%d')})") #retrieve bid prices of EUR= bid_prices = ld.get_data( "EUR=", bid_price_fields.tolist(), header_type=ld.HeaderType.NAME) #Add a new column (EUR) that contain BID prices on the issue dates bid_column = df['IssueDate'].apply(lambda x: bid_prices[f"TR.BIDPRICE(SDATE={x.strftime('%Y-%m-%d')})"][0]) df["EUR"]=bid_column #Calculate the AmountEUR column with IssueSizeUSD * (1 / EUR) df["AmountEUR"] = df['IssueSizeUSD']*(1/df['EUR']) df
Please contact the helpdesk team via MyAccount to verify if this is a valid method.
0 -
Dear Jirapongse,
I am not searching for convertible bonds, but non-convertible bonds, so your results do not apply.
Moreover, by searching the RIC "MY8664PC" in the workspace it seems that the currency of the issue is MYR and not USD.
The amount outstanding in MYR appears to be the same value under the "IssueSizeUSD" of your search divided by 1'000.Can you help me understanding?
Best
Giacomo
0 -
It could be other fields.
df = ld.discovery.search( view = ld.discovery.Views.GOV_CORP_INSTRUMENTS, filter = "RIC eq 'MY8664PC='", top = 100, select = "RIC,DocumentTitle,IssueSizeUSD,IssueSizeEUR,ISIN,FaceIssuedUSD,FaceOutstandingUSD,IssueDate,FaceIssuedTotal,FaceOutstanding,AmountOutstandingHistory") df
Please contact the helpdesk team directly via MyAccount to confirm which field can be used.
0 -
Dear Jirapongse,
thank you for your reply.
I'm still puzzled by the fact that the Amount Outstanding in the original currency (MYR) equals the IssueSzieUSD (same digits, scaled by 1'000).
Furthermore, I am not looking for convertible bonds as you did in your example.
Thanks
Giacomo
0 -
Please contact the helpdesk team via MyAccount to verify the value of IssueSzieUSD.
You can change the filter query according to your requirement. Please refer to this Building Search into your Application Workflow article.
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
- 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
- 249 ETA
- 554 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
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 192 TREP Infrastructure
- 228 TRKD
- 915 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 中文论坛