I am using the TimeSeries object from the .NET library.
Everything is working but I observed something that I would like to understand. When I do the same request recursively, (same RIC, same View and same date interval) the API return different results.
Here is an example :
_request = TimeSerieItem.SetupDataRequest("BBEURENE1Y=") .WithView("PAR_YLD") .WithAllFields() .From(new DateTime(2016,1,1)) .To(new DateTime(2017,1,1)) .WithInterval(CommonInterval.Daily) .OnDataReceived(DataReceivedCallback) .CreateAndSend();
This request will return the correct results the first time. If I call it again (during the same run time) with the same param the resulted enumeration will be empty.
I tried to create a new instance of TimeSerieItem for each request like this:
TimeSerieItem = Service.TimeSeries; TimeSerieItem.ServiceInformationChanged += timeSeries_ServiceInformationChanged;
but it does not change anything.
Could someone explain me the reason of such results ?
Thank you !