I am currently using Eikon to save bond OAS data regularly by first querying rdp / govsrch to get a list of bonds and then using eikon's get_data() to pull OAS for these bonds. I've noticed that the number of returns from this query varies greatly, sometimes I get 7k valid returns for the OAS data and sometimes I get 14k. Is there a reason for getting such varied amounts of valid results and is there any predictability to this?
My code is essentially a loop of
data, err = ek.get_data(universe,'TR.OPTIONADJUSTEDSPREADBID',{'SDate':OAS_date})
in which 'universe' is a list of bond RICs and the returned 'data' variable gets added to a dataframe. I pull this data 1000 at a time to avoid data limits so this shouldn't be an issue here.
Any help would be greatly appreciated.