How to retrieve foreign currency credit ratings of sovereign from Standard & Poor's, Moody's and Fitch, through python script?
@Jhanna Marie Cristobal
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 need to ask for the Excel formula, such as =RDP.Data, that can be used to retrieve the required data. Then, we can help you converting that formula to Python code. You can also refer to these articles:
I am not sure if the TR.IssuerRating(IssuerRatingSrc=SPI, RatingScope=FRN) field can provide this data.
instruments = ['IBM.N'] df = ld.get_data( universe=instruments, fields=[ 'TR.CommonName', 'TR.IssuerRating(IssuerRatingSrc=SPI, RatingScope=FRN)', # S&P Issuer Rating 'TR.IssuerRating(IssuerRatingSrc=MIS, RatingScope=FRN)', # Moody's Issuer Rating 'TR.IssuerRating(IssuerRatingSrc=FDL, RatingScope=FRN)', # Fitch Issuer Rating 'TR.IssuerRating.date' ] ) df
Please contact the helpdesk team to confirm this.