question

Upvotes
Accepted
1 0 0 0

Looking for historical credit rating bond data for a large amount of bonds on Eikon

I am looking to find historical credit ratings for a vast amount of bonds (spanning about 10 years). I can't search for a specific date because they were all issued at different times. When using codebook, I managed to find ratings for a large number of bonds but that was the rating at the time of my search instead of historical.


Here is the code I used -

import eikon as ek

import pandas as pd

ek.set_app_key('...')

isins = [ ]

fields = ['TR.GR.Rating','TR.GR.RatingSourceCode' ]

data, err = ek.get_data(isins, fields)

if err:

print(f"An error occurred: {err}")

else:

print(data)

except Exception as e:

print(f"An error occurred: {e}")

data.to_csv('bond_credit_ratings.csv', index=False)


If anyone knows how to access historical credit ratings for large amounts of bonds at once, please let me know. Any help with this would be very appreciated :)

eikon#contentrefinitiv-data-platformcredit-ratings
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvote
Accepted
86.8k 294 53 79

@2553514r

Thank you for reaching out to us.

I checked the Data Item Browser tool and found that the TR.GR.Rating field supports the series data.

1719894993218.png

Please contact the helpdesk team via MyAccount regarding how to set these parameters for bond instruments.


1719894993218.png (62.4 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.