Hi I am pulling historical price and yield information for a set of 6,068 bonds using the Datastream Enterprise API. I have defined a function (using previous suggestions here) to bypass the 50 instrument limit (picture 1).
When I run this code it works fine but I am getting inconsistent results each time. For example the results for Interest Yield (IY) the first time returned information on 5927 instruments, but the second time returned information on 6021 instruments. My code is exactly the same each run which makes me think that there is a bug issue that causes the data to change each time.
Has this issue been found before? Does anyone have any suggestions on how to fix this?