Upgrade from Eikon -> Workspace. Learn about programming differences.

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
2 1 0 0

using Python to get ratings for a list of ISIN

Hi there,

I'd like to get:

  • Moody's Long-term Issue Credit Rating
  • Fitch Long-term Issue Credit Rating
  • S&P Long-term Issue Credit Rating

for a list of bonds; I can see data in the single <ISIN> description:

but I have no idea how to find the proper Python formula.
Any help would be more then welcome.
Thank you

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apibondscredit-ratings
capture.gif (71.7 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.

Hello @pino.segugio

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?


If so please can you click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.

Thanks,


AHS


Upvotes
Accepted
18.2k 21 13 21

Hi @pino.segugio

You can use "Data Item Browser" to see field description and supported parameters.


To launch "Data item Browser", type DIB in the Eikon Search Bar and press enter.


Alternatively, you can contact Refinitiv Content Helpdesk at https://my.refinitiv.com/ to clarify on the RIC / Fields / Parameters you are looking for.


ahs.png (139.0 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.

Upvotes
2 1 0 0

it was a painful "try and error" process.
At last an useful formula is the following:

instruments=['XS1244539760','XS0842659426', 'XS0426738976','XS0268293213']

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

df, err = ek.get_data(instruments, fields, {'SDate':0,'EDate':-4800})


BUT,

  1. I wasn't able to find a satisfactory 'TR.*' fields explanation;
  2. DBRS ratings are missing
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.