Hi,
I need to know what the open price is of various assets. I can get that by making a simple timeseries request to test this.
public void Launch(String ric)
{
Console.WriteLine("Get RIC: "+ ric);
//Console.WriteLine("");
request = timeSeries.SetupDataRequest(ric)
//.WithView("BID")
.WithAllFields()
.WithInterval(CommonInterval.Daily)
//.From(dt)
.WithNumberOfPoints(1)
.OnDataReceived(DataReceivedCallback)
.CreateAndSend();
}
This request is made within a second after the exchange opens. The issue now is that sometimes there isn't a quote yet (especially for illiquid markets). In that case I have to query again and again until I get a good open.
To test this I changed .Daily to Intradat1Minute and made 2 requests with a Thread Sleep of 61 seconds. However, the return values I get are for the same timestamp.
This is what I do (sd.RIC+s is just the RIC)
TimeSeriesRequest(sd.RIC + s);
Thread.Sleep(61000);
TimeSeriesRequest(sd.RIC + s);
private static void TimeSeriesRequest(String ric)
{
(new TimeSeriesRequestExample(timeSeries)).Launch(ric);
}
The output is:
ESc1: 2 (new!!!)
16-Jul-2019 18:17:00,3007.00,3007.25,3006.50,3006.50,549,1
16-Jul-2019 18:17:00,3007.00,3007.25,3006.50,3006.50,549,1
As you can see, even though I expect a different time stamp, they are indeed the same.
How can I solve this?
Thank you
Jerome