WS API How to Retrieve MBS, ABS, and Corporate Bond by Country or Currency

Currently, Our client is looking to obtain data on U.S. MBS (Mortgage-Backed Securities), ABS (Asset-Backed Securities), as well as corporate bonds categorized by country or currency.
Until now, he has been using the following method to retrieve government bond data. However, he have not been successful in acquiring MBS and similar data. Would it be possible for you to advise me on the appropriate approach in order to get this list?
result = rd.discovery.search(
view = rd.discovery.Views.GOV_CORP_INSTRUMENTS,
filter = f"RCSCurrencyLeaf eq '{currency}' and RCSTRBC2012Leaf eq 'Government & Government Finance' and AssetState eq 'AC'",
select = "DTSubjectName, RIC, ISIN, RCSAssetCategoryLeaf, AssetState, RCSCurrencyLeaf, DocumentTitle, MaturityDate, Identifier, RCSDomicileGenealogy",
top = 10000,
)
response = search.Definition(
view = search.Views.GOV_CORP_INSTRUMENTS,
top = 10000,
filter = f"(DbType eq 'GOVT' and RCSAssetCategory eq 'A:J' and (RCSDomicileGenealogy in ('{area}')))",
select = "RIC,EJVAssetID,DTSubjectName,BusinessEntity,PI,SearchAllCategoryv3,SearchAllCategoryv2,SearchAllCategory,DBSTicker,CouponRate,MaturityDate,IssueDate,ISIN,RCSCurrencyLeaf,RCSCountryLeaf,DbTypeDescription,InstrumentTypeDescription,RCSCouponTypeGenealogy,FaceIssuedUSD,RCSBondGradeLeaf,RCSDomicileGenealogy"
).get_data()
I tried to do like above, but I can not find the parameters something like country_name or decimile, etc in order to filter by countriy(and currency)
Answers
-
Thank you for reaching out to us.
This forum is dedicated to software developers using LSEG APIs. The moderators on this forum do not have deep expertise in every bit of content available through LSEG products, which is required to answer content questions such as this one.
The best resource for content questions is the Helpdesk support team, which can be reached by submitting queries through LSEG Support. The support team will either have the required content expertise ready available or can reach out to relevant content experts to get the answer for you.
You can use the following code to get all fields for each search view.
from refinitiv.data.content import search ,,, response = search.metadata.Definition( view = search.Views.MORTGAGE_INSTRUMENTS ).get_data() response.data.df
0 -
I found some country fields in the MORTGAGE_INSTRUMENTS view.
0 -
Thank you for your response.
I would like to ask an additional question, if I may.
Regarding the US MBS acquired through MORT, the RIC field is returned blank. Would it be possible for you to advise us on how to obtain this information (or alternatively, are these instruments that do not have RICs)?
Thank you for your time and assistance.
0 -
This forum is dedicated to software developers using LSEG APIs. The moderators on this forum do not have deep expertise in every bit of content available through LSEG products, which is required to answer content questions such as this one.
The best resource for content questions is the Helpdesk support team, which can be reached by submitting queries through LSEG Support. The support team will either have the required content expertise ready available or can reach out to relevant content experts to get the answer for you.
Please include the URL of this discussion in your raised question to prevent it from being redirected back to this Q&A forum.
Otherwise, please share the code that you are using. I can check if it returns blank for the RIC field.
0 -
Thank you very much for your response.
Please find below the sample code for your reference.
In this case, I believe that only the RIC field would not be included in the output results.
I would greatly appreciate your assistance with this matter.MBS_list = rd.discovery.search(
view = rd.discovery.Views.MORTGAGE_INSTRUMENTS,
filter = f"RCSIssuerCountryLeaf eq 'United States' and IssueDate ge {start_date} and IssueDate le {end_date}",
select = "ISIN, RIC, CouponRate, CouponFrequency, DbType, IssuerCommonName, IssueDate, MaturityDate, Price, RCSCouponType, RCSCurrency, RCSCurrencyLeaf, RCSIssuerCountryLeaf",
top=100,
)0 -
Is it the RRPSRic field?
start_date = "2025-01-01" end_date = "2025-08-01" MBS_list = ld.discovery.search( view = ld.discovery.Views.MORTGAGE_INSTRUMENTS, filter = f"RCSIssuerCountryLeaf eq 'United States' and IssueDate ge {start_date} and IssueDate le {end_date}", select = "ISIN, RIC, RRPSRic, CouponRate, CouponFrequency, DbType, IssuerCommonName, IssueDate, MaturityDate, Price, RCSCouponType, RCSCurrency, RCSCurrencyLeaf, RCSIssuerCountryLeaf", top=100, ) MBS_list
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 37 Alpha
- 167 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 704 Datastream
- 1.5K DSS
- 633 Eikon COM
- 5.2K Eikon Data APIs
- 14 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 6 Trading API
- 2.9K Elektron
- 1.5K EMA
- 257 ETA
- 566 WebSocket API
- 40 FX Venues
- 16 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 283 Open PermID
- 47 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 24 RDMS
- 2.1K Refinitiv Data Platform
- 839 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
- 122 Open DACS
- 1.1K RFA
- 107 UPA
- 195 TREP Infrastructure
- 232 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 101 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛