I am interested to compute for a set of banks their historical outstanding average YTM of all their unsecured bonds. At the moment I have a list of ParentOAPermID of banks that I am interested in. So at the moment I first retrieve for all the banks via the api using the get_data function all bonds issued by that specific bank. After I have retrieved all bonds for a given bank and collected their respective isins I then query using the get_history function of the api of all the bonds in the list retrieved earlier the quarterly ytm. However, using this methodology I run into two problems
(1) I am for many bonds not able to retrieve any pricing data
(2) I run into API rate daily limits.
So, my question is whether you have a better strategy to compute for a set of banks their historical YTM of outstanding unsecured debt and whether you could possibly provide a useful python code that I can build up on. Or is the only way forward the way I described above?