DSDataRequest ClassDSWS API (.NET)

[This is preliminary documentation and is subject to change.]

Defines the data request
Inheritance Hierarchy

System Object
  Datastream.DswsApi DSDataRequest

Namespace: Datastream.DswsApi
Assembly: Datastream.DswsApi.NET4.0 (in Datastream.DswsApi.NET4.0.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public sealed class DSDataRequest
Remarks

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.
Examples

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),
};
Version Information

.NET API Framework

Supported in: 4.1, 3.6
See Also