Question:
a) How to upload/override the Instrument List against DSS GUI from Incoming Folder?
b) Share some sample C# code to auto upload instrument file from FTP landing zone (Incoming folder)?
For a deeper look into our DataScope Select SOAP API, look into:
Overview | Quickstart | Documentation | Downloads | Tutorials
Question:
a) How to upload/override the Instrument List against DSS GUI from Incoming Folder?
b) Share some sample C# code to auto upload instrument file from FTP landing zone (Incoming folder)?
Hi @pakrudeenali.mohamedmeeran
You can upload a XML file to the "Incoming folder" on ftp://hosted.datascope.reuters.com to append or override instrument in an InstrumentList defined in DSS GUI. For more detail, please see the DSS FTP User Guide. The sample XML to append instruments is below.
<InputList> <InputListAction>Append</InputListAction> <Name>myInstrumentListName</Name> <Instrument> <IdentifierType>RIC</IdentifierType> <Identifier>IBM.N</Identifier> <Exchange>NYS</Exchange> </Instrument> <Instrument> <IdentifierType>RIC</IdentifierType> <Identifier>VECO.OQ</Identifier> </Instrument> </InputList>
However, I recommend using DSS .NET SDK instead of FTP for C# application. Please see this tutorial for more information. The C# Example Application in this page also provide sample of codes to update/delete instruments from the InstrumentList.
Thanks for your response.
But am getting below error, when I tried with sample code.
Unhandled Exception: ThomsonReuters.Dss.Api.TransportException: An error occurred while sending the request. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The remote name could not be resolved: 'hosted.datascopeapi.reuters.com'
at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, Tr
ansportContext& context)
Can you access the https://hosted.datascopeapi.reuters.com via web browser? Are you behind a proxy?
You can configure the proxy setting in the app.config file. Please see this for more information.
Have you tried the suggestion from @veerapath.runruengrayubkul yet? The result will give more clue to isolate this issue.