Hi All,
I need to extract the following bond information using LSEG python package:
- macaulay duration,
- outstanding amount,
- market value
- bond rating
- bond maturity date
- bond coupon rate
I try to use the field in my attach file, but it doesn't work. Could you advise me the proper field name to extract such information?
I attached my code and output:
Many thanks!
field_tocollect = ['TR.ASKPRICE.date', 'TR.BIDPRICE','TR.ASKPRICE', 'TR.ASKYIELD', 'TR.BIDYIELD',
'TR.DURATION','TR.MODIFIEDDURATION', 'TR.CONVEXITY', 'MAC_DURTN', 'TR.AmtOutstanding'
'TR.CA.CouponRate', 'TR.FIMaturityDate', 'TR.IssuerRating']
isinlist = ['US749571AF20', 'US22822VAE11']
df = ld.get_data(
universe = isinlist,
fields=field_tocollect,
parameters={"SDate": "2008-05-01", "EDate": "2025-06-17", "Frq": "M"}
)