I have a list of cusip data about municipal bonds with around 50000 length, and I wanna get their historical rating with rd.discovery.search, but the followting code doesn't work.
What should I do?
cusip = ['18085PMP6', '613340Q27', '181012B','10141PAM5'
,'181059KB','181000LH1'] # The actual length is 500000
ratings = rd.discovery.search(
view = rd.discovery.Views.MUNICIPAL_INSTRUMENTS,
query = cusip,
select = "CUSIP, Ratings"
)