I would like to change the instrument in the Usage Example Time series API for .NET from EUR= to AAPL.O
But I get an empty result set. Why?
The same if I use a fund, e.g. LP40114117.
public void Launch()
{
Console.WriteLine("[3] Time series subscription example");
Console.WriteLine("");
subscription = timeSeries.SetupDataSubscription("AAPL.O")
.WithView("BID")//BID
.WithAllFields()
.WithInterval(CommonInterval.Daily)
.From(DateTime.Today)
.OnDataReceived(DataReceivedCallback)
.OnDataUpdated(DataUpdatedCallback)
.CreateAndStart();
}
private void DataReceivedCallback(DataChunk chunk)
{
foreach (IBarData bar in chunk.Records.ToBarRecords())
{
if (bar.Open.HasValue && bar.High.HasValue && bar.Low.HasValue && bar.Close.HasValue && bar.Timestamp.HasValue)
{
Console.WriteLine(
"{0}: EUR= OHLC {1} {2} {3} {4}",
bar.Timestamp.Value.ToLongTimeString(),
bar.Open.Value.ToString("##.0000"),
bar.High.Value.ToString("##.0000"),
bar.Low.Value.ToString("##.0000"),
bar.Close.Value.ToString("##.0000")
);
};
}
}