How can I return date with corresponding value when calling GetData with DSTimeSeriesDate using datastream .net api
Here is an example
var datatype = "REBE#(X/FTSE100)-100";
var request = new DSDataRequest()
{
Instrument = new DSInstrument(identifier),
DataTypes = new DSDataTypes(datatype),
Date = new DSTimeSeriesDate(DSDateType.Literal("-2Y"), DSDateType.Literal(""), DSDateFrequency.Daily),
};
var response = DSClient.DataService.GetData(request);
double[] values = response[datatype][identifier].GetValue<double[]>();
How can I return collection of objects that gives date and its corresponding value