How to get a list of historical rating data with the specified cusip?

I am using the Data platfrom API with python, and I want to get the list of historical rating data of a municipal bond with cusip "613340Q27"

I can see the list in the desktop application window (right hand side of the screenshoot), but i don't know how to get it from python API, please help me

1682503506899.png

Best Answer

  • aramyan.h
    Answer ✓

    Hi @eikon11 ,


    Thank you for your question. You may be able to get the ratings using the Search capaibilities of RD Library for Python.

    ratings = rd.discovery.search(
    view = rd.discovery.Views.MUNICIPAL_INSTRUMENTS,
    query = '613340Q27',
    select = "CUSIP, Ratings"
    )
    ratings['Ratings'].values

    screenshot-2023-04-26-at-150744.png

    Hope this helps.


    Best regards,

    haykaz