Reference for DSService.svc - GetDataBundle
Given a token and details for multiple requests, retrieves data for all the requests.
REQUEST PARAMETERS
The operation takes in a parameter of type DSGetDataBundleRequest which has the following members.
| Name | Type | Description | Example Value |
|---|---|---|---|
| Token | String | The token retrieved through GetToken operation | n9IcXCXIq+ApBEe0zLBeTrU11D65F6BB2ED74E3467EA0EBE |
| DataRequests | DSDataRequest[] | Defines the array of request details for which data must be retrieved | Refer DSDataRequest for details. |
| Properties | DSStringObjectKVPair[] | Properties to customize behavior | null |
The operation returns a parameter of type DSGetDataBundleResponse which has the following members.
| Name | Type | Description | Example Value |
|---|---|---|---|
| DataResponses | DSDataResponse[] | The array of responses corresponding to each request. | Refer DSDataResponse for more details |
| Properties | DSStringObjectKVPair[] | Properties describing behavior | null |
SOAP
The following is a sample SOAP request.
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://dsws.datastream.com/client/V1/IDSService/GetDataBundle</Action>
</s:Header>
<s:Body>
<GetDataBundle xmlns="http://dsws.datastream.com/client/V1/">
<request xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<DataRequests>
<DSDataRequest>
<Instrument>
<Value>VOD</Value>
<Properties i:nil="true" />
</Instrument>
<DataTypes>
<DSDataType>
<Value>PL</Value>
<Properties i:nil="true" />
</DSDataType>
</DataTypes>
<Date>
<Start>-10D</Start>
<End />
<Frequency />
<Kind>Snapshot</Kind>
</Date>
<Tag i:nil="true" />
</DSDataRequest>
<DSDataRequest>
<Instrument>
<Value>BARC</Value>
<Properties i:nil="true" />
</Instrument>
<DataTypes>
<DSDataType>
<Value>PH</Value>
<Properties i:nil="true" />
</DSDataType>
</DataTypes>
<Date>
<Start>-20D</Start>
<End />
<Frequency />
<Kind>Snapshot</Kind>
</Date>
<Tag i:nil="true" />
</DSDataRequest>
</DataRequests>
<Properties i:nil="true" />
<TokenValue>n9IcXCXIq+1h2blED74E3467EA0EBE0C</TokenValue>
</request>
</GetDataBundle>
</s:Body>
</s:Envelope>
The following is a sample SOAP response.
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header />
<s:Body>
<GetDataBundleResponse xmlns="http://dsws.datastream.com/client/V1/">
<GetDataBundleResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<DataResponses>
<DSDataResponse>
<AdditionalResponses i:nil="true" />
<DataTypeNames i:nil="true" />
<DataTypeValues>
<DSDataTypeResponseValue>
<DataType>PL</DataType>
<SymbolValues>
<DSSymbolResponseValue>
<Currency>£</Currency>
<Symbol>VOD</Symbol>
<Type>Double</Type>
<Value i:type="a:double" xmlns:a="http://www.w3.org/2001/XMLSchema">155.9</Value>
</DSSymbolResponseValue>
</SymbolValues>
</DSDataTypeResponseValue>
</DataTypeValues>
<Dates i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
<SymbolNames i:nil="true" />
<Tag i:nil="true" />
</DSDataResponse>
<DSDataResponse>
<AdditionalResponses i:nil="true" />
<DataTypeNames i:nil="true" />
<DataTypeValues>
<DSDataTypeResponseValue>
<DataType>PH</DataType>
<SymbolValues>
<DSSymbolResponseValue>
<Currency>£</Currency>
<Symbol>BARC</Symbol>
<Type>String</Type>
<Value i:type="a:string" xmlns:a="http://www.w3.org/2001/XMLSchema">NA</Value>
</DSSymbolResponseValue>
</SymbolValues>
</DSDataTypeResponseValue>
</DataTypeValues>
<Dates i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
<SymbolNames i:nil="true" />
<Tag i:nil="true" />
</DSDataResponse>
</DataResponses>
<Properties i:nil="true" />
</GetDataBundleResult>
</GetDataBundleResponse>
</s:Body>
</s:Envelope>