[This is preliminary documentation and is subject to change.]
Defines the data request
System Object Datastream.DswsApi DSDataRequestNamespace: Datastream.DswsApiAssembly: Datastream.DswsApi.NET4.0 (in Datastream.DswsApi.NET4.0.dll) Version: 1.0.0.0 (1.0.0.0)
public sealed class DSDataRequest
public sealed class DSDataRequest
Public NotInheritable Class DSDataRequest
Public NotInheritable Class DSDataRequest
A data request consists of an instrument, data types, date information and optional request properties.
The instrument is created by populating a
DSInstrument, data types through
DSDataTypes and date information either as
DSSnapshotDate or
DSTimeSeriesDate.
You can use set different properties
DSDataRequestProperties to customize the request. For example you can use
DSDataRequestPropertyTypes to define certain additional response values.
The following example shows how to populate a typical data request:
var request = new DSDataRequest()
{
Instrument = new DSInstrument("VOD"),
DataTypes = new DSDataTypes("PL", "PH"),
Date = new DSTimeSeriesDate(DSDateType.Relative(-30), DSDateType.Relative(-10), DSDateFrequency.Daily),
Properties = new DSDataRequestProperties(DSDataRequestPropertyTypes.ReturnCurrency | DSDataRequestPropertyTypes.ReturnInstrumentExpandedName),
};
var request = new DSDataRequest()
{
Instrument = new DSInstrument("VOD"),
DataTypes = new DSDataTypes("PL", "PH"),
Date = new DSTimeSeriesDate(DSDateType.Relative(-30), DSDateType.Relative(-10), DSDateFrequency.Daily),
Properties = new DSDataRequestProperties(DSDataRequestPropertyTypes.ReturnCurrency | DSDataRequestPropertyTypes.ReturnInstrumentExpandedName),
};
.NET API Framework
Supported in: 4.1, 3.6