Reference for http://product.datastream.com/DswsClient/V1/DSService.svc/rest/Data?token={TOKEN}&instrument={INSTRUMENT}&datatypes={DATATYPES}&datekind={DATEKIND}&start={START}&end={END}&freq={FREQ}&props={PROPS}&format={FORMAT}&convertNan={CONVERTNAN}
Given a token and request details, retrieves data. For full functionality use the GetData (HTTP POST) method.
Url: http://product.datastream.com/DswsClient/V1/DSService.svc/rest/Data?token={TOKEN}&instrument={INSTRUMENT}&datatypes={DATATYPES}&datekind={DATEKIND}&start={START}&end={END}&freq={FREQ}&props={PROPS}&format={FORMAT}&convertNan={CONVERTNAN}
HTTP Method: GET
Message direction | Format | Body |
---|---|---|
Request | N/A | The Request body is empty. |
Response | Xml | Example,Schema |
Response | Json | Example |
The following is an example response Xml body:
<DSDataResponse xmlns="http://dsws.datastream.com/client/V1/"> <AdditionalResponses> <DSStringObjectKVPair> <Key>String content</Key> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <Value xmlns:d10="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:type="d10:ArrayOfanyType" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d10:anyType i:type="ArrayOfanyType"> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d10:anyType i:type="ArrayOfanyType"> <d10:anyType i:nil="true" /> <d10:anyType i:nil="true" /> </d10:anyType> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d10:anyType i:type="ArrayOfanyType"> <d10:anyType i:nil="true" /> <d10:anyType i:nil="true" /> </d10:anyType> </d10:anyType> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d10:anyType i:type="ArrayOfanyType"> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d10:anyType i:type="ArrayOfanyType"> <d10:anyType i:nil="true" /> <d10:anyType i:nil="true" /> </d10:anyType> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d10:anyType i:type="ArrayOfanyType"> <d10:anyType i:nil="true" /> <d10:anyType i:nil="true" /> </d10:anyType> </d10:anyType> </Value> </DSStringObjectKVPair> <DSStringObjectKVPair> <Key>String content</Key> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <Value xmlns:d10="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:type="d10:ArrayOfanyType" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d10:anyType i:type="ArrayOfanyType"> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d10:anyType i:type="ArrayOfanyType"> <d10:anyType i:nil="true" /> <d10:anyType i:nil="true" /> </d10:anyType> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d10:anyType i:type="ArrayOfanyType"> <d10:anyType i:nil="true" /> <d10:anyType i:nil="true" /> </d10:anyType> </d10:anyType> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d10:anyType i:type="ArrayOfanyType"> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d10:anyType i:type="ArrayOfanyType"> <d10:anyType i:nil="true" /> <d10:anyType i:nil="true" /> </d10:anyType> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d10:anyType i:type="ArrayOfanyType"> <d10:anyType i:nil="true" /> <d10:anyType i:nil="true" /> </d10:anyType> </d10:anyType> </Value> </DSStringObjectKVPair> </AdditionalResponses> <DataTypeNames> <DSStringKVPair> <Key>String content</Key> <Value>String content</Value> </DSStringKVPair> <DSStringKVPair> <Key>String content</Key> <Value>String content</Value> </DSStringKVPair> </DataTypeNames> <DataTypeValues> <DSDataTypeResponseValue> <DataType>String content</DataType> <SymbolValues> <DSSymbolResponseValue> <Currency>String content</Currency> <Symbol>String content</Symbol> <Type>Error</Type> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <Value xmlns:d16="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:type="d16:ArrayOfanyType" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d16:anyType i:type="ArrayOfanyType"> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d16:anyType i:type="ArrayOfanyType"> <d16:anyType i:nil="true" /> <d16:anyType i:nil="true" /> </d16:anyType> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d16:anyType i:type="ArrayOfanyType"> <d16:anyType i:nil="true" /> <d16:anyType i:nil="true" /> </d16:anyType> </d16:anyType> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d16:anyType i:type="ArrayOfanyType"> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d16:anyType i:type="ArrayOfanyType"> <d16:anyType i:nil="true" /> <d16:anyType i:nil="true" /> </d16:anyType> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d16:anyType i:type="ArrayOfanyType"> <d16:anyType i:nil="true" /> <d16:anyType i:nil="true" /> </d16:anyType> </d16:anyType> </Value> </DSSymbolResponseValue> <DSSymbolResponseValue> <Currency>String content</Currency> <Symbol>String content</Symbol> <Type>Error</Type> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <Value xmlns:d16="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:type="d16:ArrayOfanyType" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d16:anyType i:type="ArrayOfanyType"> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d16:anyType i:type="ArrayOfanyType"> <d16:anyType i:nil="true" /> <d16:anyType i:nil="true" /> </d16:anyType> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d16:anyType i:type="ArrayOfanyType"> <d16:anyType i:nil="true" /> <d16:anyType i:nil="true" /> </d16:anyType> </d16:anyType> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d16:anyType i:type="ArrayOfanyType"> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d16:anyType i:type="ArrayOfanyType"> <d16:anyType i:nil="true" /> <d16:anyType i:nil="true" /> </d16:anyType> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d16:anyType i:type="ArrayOfanyType"> <d16:anyType i:nil="true" /> <d16:anyType i:nil="true" /> </d16:anyType> </d16:anyType> </Value> </DSSymbolResponseValue> </SymbolValues> </DSDataTypeResponseValue> <DSDataTypeResponseValue> <DataType>String content</DataType> <SymbolValues> <DSSymbolResponseValue> <Currency>String content</Currency> <Symbol>String content</Symbol> <Type>Error</Type> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <Value xmlns:d16="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:type="d16:ArrayOfanyType" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d16:anyType i:type="ArrayOfanyType"> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d16:anyType i:type="ArrayOfanyType"> <d16:anyType i:nil="true" /> <d16:anyType i:nil="true" /> </d16:anyType> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d16:anyType i:type="ArrayOfanyType"> <d16:anyType i:nil="true" /> <d16:anyType i:nil="true" /> </d16:anyType> </d16:anyType> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d16:anyType i:type="ArrayOfanyType"> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d16:anyType i:type="ArrayOfanyType"> <d16:anyType i:nil="true" /> <d16:anyType i:nil="true" /> </d16:anyType> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d16:anyType i:type="ArrayOfanyType"> <d16:anyType i:nil="true" /> <d16:anyType i:nil="true" /> </d16:anyType> </d16:anyType> </Value> </DSSymbolResponseValue> <DSSymbolResponseValue> <Currency>String content</Currency> <Symbol>String content</Symbol> <Type>Error</Type> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <Value xmlns:d16="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:type="d16:ArrayOfanyType" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d16:anyType i:type="ArrayOfanyType"> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d16:anyType i:type="ArrayOfanyType"> <d16:anyType i:nil="true" /> <d16:anyType i:nil="true" /> </d16:anyType> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d16:anyType i:type="ArrayOfanyType"> <d16:anyType i:nil="true" /> <d16:anyType i:nil="true" /> </d16:anyType> </d16:anyType> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d16:anyType i:type="ArrayOfanyType"> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d16:anyType i:type="ArrayOfanyType"> <d16:anyType i:nil="true" /> <d16:anyType i:nil="true" /> </d16:anyType> <!--Valid elements of type: ArrayOfanyType, ArrayOfboolean, ArrayOfdateTime, ArrayOfdouble, ArrayOfDSDataTypeResponseValue, ArrayOfDSStringKVPair, ArrayOfDSStringObjectKVPair, ArrayOfDSSymbolResponseValue, ArrayOfint, ArrayOfstring, DSDataResponse, DSDataTypeResponseValue, DSFault, DSStringKVPair, DSStringObjectKVPair, DSSymbolResponseValue, KVPairOfstringanyType, KVPairOfstringstring, schema--> <d16:anyType i:type="ArrayOfanyType"> <d16:anyType i:nil="true" /> <d16:anyType i:nil="true" /> </d16:anyType> </d16:anyType> </Value> </DSSymbolResponseValue> </SymbolValues> </DSDataTypeResponseValue> </DataTypeValues> <Dates> <dateTime xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">1999-05-31T11:20:00</dateTime> <dateTime xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">1999-05-31T11:20:00</dateTime> </Dates> <SymbolNames> <DSStringKVPair> <Key>String content</Key> <Value>String content</Value> </DSStringKVPair> <DSStringKVPair> <Key>String content</Key> <Value>String content</Value> </DSStringKVPair> </SymbolNames> <Tag>String content</Tag> </DSDataResponse>
The following is an example response Json body:
{ "AdditionalResponses":[{ "Key":"String content", "Value":{ "anyType":{ "anyType":{ "anyType":null } } } }], "DataTypeNames":[{ "Key":"String content", "Value":"String content" }], "DataTypeValues":[{ "DataType":"String content", "SymbolValues":[{ "Currency":"String content", "Symbol":"String content", "Type":0, "Value":{ "anyType":{ "anyType":{ "anyType":null } } } }] }], "Dates":["\/Date(928149600000+0000)\/"], "SymbolNames":[{ "Key":"String content", "Value":"String content" }], "Tag":"String content" }
The following is the response Xml Schema:
<xs:schema xmlns:tns="http://dsws.datastream.com/client/V1/" elementFormDefault="qualified" targetNamespace="http://dsws.datastream.com/client/V1/" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/" /> <xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" /> <xs:simpleType name="DSFaultCodes"> <xs:restriction base="xs:string"> <xs:enumeration value="Undefined" /> <xs:enumeration value="InvalidCredentials" /> <xs:enumeration value="InvalidToken" /> <xs:enumeration value="InvalidArgument" /> <xs:enumeration value="NotAuthorized" /> <xs:enumeration value="ResponseTooLarge" /> <xs:enumeration value="DataError" /> <xs:enumeration value="Timeout" /> </xs:restriction> </xs:simpleType> <xs:element name="DSFaultCodes" nillable="true" type="tns:DSFaultCodes" /> <xs:simpleType name="DSInstrumentPropertyNames"> <xs:restriction base="xs:string"> <xs:enumeration value="IsList" /> <xs:enumeration value="IsExpression" /> <xs:enumeration value="IsSymbolSet" /> <xs:enumeration value="ReturnCurrency" /> <xs:enumeration value="ReturnName" /> <xs:enumeration value="ReturnNoDates"> <xs:annotation> <xs:appinfo> <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">6</EnumerationValue> </xs:appinfo> </xs:annotation> </xs:enumeration> </xs:restriction> </xs:simpleType> <xs:element name="DSInstrumentPropertyNames" nillable="true" type="tns:DSInstrumentPropertyNames" /> <xs:simpleType name="DSDataTypePropertyNames"> <xs:restriction base="xs:string"> <xs:enumeration value="Scale" /> <xs:enumeration value="Currency" /> <xs:enumeration value="DecimalPlaces" /> <xs:enumeration value="ReturnName" /> </xs:restriction> </xs:simpleType> <xs:element name="DSDataTypePropertyNames" nillable="true" type="tns:DSDataTypePropertyNames" /> <xs:simpleType name="DSDateNames"> <xs:restriction base="xs:string"> <xs:enumeration value="BDATE" /> <xs:enumeration value="SWDATE" /> <xs:enumeration value="SMDATE" /> <xs:enumeration value="SQDATE" /> <xs:enumeration value="SYDATE" /> <xs:enumeration value="TIME" /> <xs:enumeration value="LATESTDATE" /> <xs:enumeration value="DEFAULTDATE" /> <xs:enumeration value="TODAY" /> <xs:enumeration value="YRE" /> <xs:enumeration value="MTE" /> <xs:enumeration value="QTE" /> <xs:enumeration value="WKE" /> <xs:enumeration value="YRS" /> <xs:enumeration value="MTS" /> <xs:enumeration value="QTS" /> <xs:enumeration value="WKS" /> <xs:enumeration value="YRM" /> <xs:enumeration value="MTM" /> <xs:enumeration value="QTM" /> <xs:enumeration value="WKM" /> </xs:restriction> </xs:simpleType> <xs:element name="DSDateNames" nillable="true" type="tns:DSDateNames" /> <xs:simpleType name="DSDateFrequencyNames"> <xs:restriction base="xs:string"> <xs:enumeration value="D" /> <xs:enumeration value="W" /> <xs:enumeration value="M" /> <xs:enumeration value="Q" /> <xs:enumeration value="Y" /> </xs:restriction> </xs:simpleType> <xs:element name="DSDateFrequencyNames" nillable="true" type="tns:DSDateFrequencyNames" /> <xs:complexType name="DSDataResponse"> <xs:sequence> <xs:element minOccurs="0" name="AdditionalResponses" nillable="true" type="tns:ArrayOfDSStringObjectKVPair" /> <xs:element minOccurs="0" name="DataTypeNames" nillable="true" type="tns:ArrayOfDSStringKVPair" /> <xs:element minOccurs="0" name="DataTypeValues" nillable="true" type="tns:ArrayOfDSDataTypeResponseValue" /> <xs:element minOccurs="0" name="Dates" nillable="true" xmlns:q1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" type="q1:ArrayOfdateTime" /> <xs:element minOccurs="0" name="SymbolNames" nillable="true" type="tns:ArrayOfDSStringKVPair" /> <xs:element minOccurs="0" name="Tag" nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> <xs:element name="DSDataResponse" nillable="true" type="tns:DSDataResponse" /> <xs:complexType name="ArrayOfDSStringObjectKVPair"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="DSStringObjectKVPair" nillable="true" type="tns:DSStringObjectKVPair" /> </xs:sequence> </xs:complexType> <xs:element name="ArrayOfDSStringObjectKVPair" nillable="true" type="tns:ArrayOfDSStringObjectKVPair" /> <xs:complexType name="DSStringObjectKVPair"> <xs:complexContent mixed="false"> <xs:extension base="tns:KVPairOfstringanyType"> <xs:sequence /> </xs:extension> </xs:complexContent> </xs:complexType> <xs:element name="DSStringObjectKVPair" nillable="true" type="tns:DSStringObjectKVPair" /> <xs:complexType name="KVPairOfstringanyType"> <xs:annotation> <xs:appinfo> <GenericType Name="KVPairOf{0}{1}{#}" Namespace="http://dsws.datastream.com/client/V1/" xmlns="http://schemas.microsoft.com/2003/10/Serialization/"> <GenericParameter Name="string" Namespace="http://www.w3.org/2001/XMLSchema" /> <GenericParameter Name="anyType" Namespace="http://www.w3.org/2001/XMLSchema" /> </GenericType> </xs:appinfo> </xs:annotation> <xs:sequence> <xs:element minOccurs="0" name="Key" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="Value" nillable="true" type="xs:anyType" /> </xs:sequence> </xs:complexType> <xs:element name="KVPairOfstringanyType" nillable="true" type="tns:KVPairOfstringanyType" /> <xs:complexType name="ArrayOfDSStringKVPair"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="DSStringKVPair" nillable="true" type="tns:DSStringKVPair" /> </xs:sequence> </xs:complexType> <xs:element name="ArrayOfDSStringKVPair" nillable="true" type="tns:ArrayOfDSStringKVPair" /> <xs:complexType name="DSStringKVPair"> <xs:complexContent mixed="false"> <xs:extension base="tns:KVPairOfstringstring"> <xs:sequence /> </xs:extension> </xs:complexContent> </xs:complexType> <xs:element name="DSStringKVPair" nillable="true" type="tns:DSStringKVPair" /> <xs:complexType name="KVPairOfstringstring"> <xs:annotation> <xs:appinfo> <GenericType Name="KVPairOf{0}{1}{#}" Namespace="http://dsws.datastream.com/client/V1/" xmlns="http://schemas.microsoft.com/2003/10/Serialization/"> <GenericParameter Name="string" Namespace="http://www.w3.org/2001/XMLSchema" /> <GenericParameter Name="string" Namespace="http://www.w3.org/2001/XMLSchema" /> </GenericType> </xs:appinfo> </xs:annotation> <xs:sequence> <xs:element minOccurs="0" name="Key" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="Value" nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> <xs:element name="KVPairOfstringstring" nillable="true" type="tns:KVPairOfstringstring" /> <xs:complexType name="ArrayOfDSDataTypeResponseValue"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="DSDataTypeResponseValue" nillable="true" type="tns:DSDataTypeResponseValue" /> </xs:sequence> </xs:complexType> <xs:element name="ArrayOfDSDataTypeResponseValue" nillable="true" type="tns:ArrayOfDSDataTypeResponseValue" /> <xs:complexType name="DSDataTypeResponseValue"> <xs:sequence> <xs:element minOccurs="0" name="DataType" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="SymbolValues" nillable="true" type="tns:ArrayOfDSSymbolResponseValue" /> </xs:sequence> </xs:complexType> <xs:element name="DSDataTypeResponseValue" nillable="true" type="tns:DSDataTypeResponseValue" /> <xs:complexType name="ArrayOfDSSymbolResponseValue"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="DSSymbolResponseValue" nillable="true" type="tns:DSSymbolResponseValue" /> </xs:sequence> </xs:complexType> <xs:element name="ArrayOfDSSymbolResponseValue" nillable="true" type="tns:ArrayOfDSSymbolResponseValue" /> <xs:complexType name="DSSymbolResponseValue"> <xs:sequence> <xs:element minOccurs="0" name="Currency" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="Symbol" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="Type" type="tns:DSSymbolResponseValueType" /> <xs:element minOccurs="0" name="Value" nillable="true" type="xs:anyType" /> </xs:sequence> </xs:complexType> <xs:element name="DSSymbolResponseValue" nillable="true" type="tns:DSSymbolResponseValue" /> <xs:simpleType name="DSSymbolResponseValueType"> <xs:restriction base="xs:string"> <xs:enumeration value="Error" /> <xs:enumeration value="Empty" /> <xs:enumeration value="Bool" /> <xs:enumeration value="Int" /> <xs:enumeration value="DateTime" /> <xs:enumeration value="Double" /> <xs:enumeration value="String" /> <xs:enumeration value="BoolArray" /> <xs:enumeration value="IntArray" /> <xs:enumeration value="DateTimeArray" /> <xs:enumeration value="DoubleArray" /> <xs:enumeration value="StringArray" /> <xs:enumeration value="ObjectArray" /> <xs:enumeration value="NullableBoolArray" /> <xs:enumeration value="NullableIntArray" /> <xs:enumeration value="NullableDateTimeArray" /> <xs:enumeration value="NullableDoubleArray" /> </xs:restriction> </xs:simpleType> <xs:element name="DSSymbolResponseValueType" nillable="true" type="tns:DSSymbolResponseValueType" /> <xs:complexType name="DSFault"> <xs:sequence> <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="Message" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="SubCode" nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> <xs:element name="DSFault" nillable="true" type="tns:DSFault" /> </xs:schema>
Additional response Xml Schemas:
<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="anyType" nillable="true" type="xs:anyType" /> <xs:element name="anyURI" nillable="true" type="xs:anyURI" /> <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" /> <xs:element name="boolean" nillable="true" type="xs:boolean" /> <xs:element name="byte" nillable="true" type="xs:byte" /> <xs:element name="dateTime" nillable="true" type="xs:dateTime" /> <xs:element name="decimal" nillable="true" type="xs:decimal" /> <xs:element name="double" nillable="true" type="xs:double" /> <xs:element name="float" nillable="true" type="xs:float" /> <xs:element name="int" nillable="true" type="xs:int" /> <xs:element name="long" nillable="true" type="xs:long" /> <xs:element name="QName" nillable="true" type="xs:QName" /> <xs:element name="short" nillable="true" type="xs:short" /> <xs:element name="string" nillable="true" type="xs:string" /> <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" /> <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" /> <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" /> <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" /> <xs:element name="char" nillable="true" type="tns:char" /> <xs:simpleType name="char"> <xs:restriction base="xs:int" /> </xs:simpleType> <xs:element name="duration" nillable="true" type="tns:duration" /> <xs:simpleType name="duration"> <xs:restriction base="xs:duration"> <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" /> <xs:minInclusive value="-P10675199DT2H48M5.4775808S" /> <xs:maxInclusive value="P10675199DT2H48M5.4775807S" /> </xs:restriction> </xs:simpleType> <xs:element name="guid" nillable="true" type="tns:guid" /> <xs:simpleType name="guid"> <xs:restriction base="xs:string"> <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" /> </xs:restriction> </xs:simpleType> <xs:attribute name="FactoryType" type="xs:QName" /> <xs:attribute name="Id" type="xs:ID" /> <xs:attribute name="Ref" type="xs:IDREF" /> </xs:schema>
<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/Arrays" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:complexType name="ArrayOfstring"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="string" nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> <xs:element name="ArrayOfstring" nillable="true" type="tns:ArrayOfstring" /> <xs:complexType name="ArrayOfint"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="int" type="xs:int" /> </xs:sequence> </xs:complexType> <xs:element name="ArrayOfint" nillable="true" type="tns:ArrayOfint" /> <xs:complexType name="ArrayOfdateTime"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="dateTime" type="xs:dateTime" /> </xs:sequence> </xs:complexType> <xs:element name="ArrayOfdateTime" nillable="true" type="tns:ArrayOfdateTime" /> <xs:complexType name="ArrayOfdouble"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="double" type="xs:double" /> </xs:sequence> </xs:complexType> <xs:element name="ArrayOfdouble" nillable="true" type="tns:ArrayOfdouble" /> <xs:complexType name="ArrayOfboolean"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="boolean" type="xs:boolean" /> </xs:sequence> </xs:complexType> <xs:element name="ArrayOfboolean" nillable="true" type="tns:ArrayOfboolean" /> <xs:complexType name="ArrayOfanyType"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="anyType" nillable="true" type="xs:anyType" /> </xs:sequence> </xs:complexType> <xs:element name="ArrayOfanyType" nillable="true" type="tns:ArrayOfanyType" /> </xs:schema>
<tns:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.w3.org/2001/XMLSchema"> <tns:element name="schema"> <tns:complexType /> </tns:element> </tns:schema>