how to increase the response time Reuters Web Service API response for EOD Prices extraction w...

...ithout scheduler

I am using below code for the price extraction, with 25 content Field Names and 1000 instrument identifiers, I can make the web service call and get responses but it is very slow. Please assist me on this

var extractionsContext = new ExtractionsContext(serverUri, _token, () => credentials, token => _token = token);

extractionsContext.Preferences.WaitSeconds = 5;

var instrumentList =new InstrumentList { Name = instrumentListName };

extractionRequest.IdentifierList = SubjectIdentifierList.CreateInstrumentIdentifierList(instrumentIdentifiers.ToArray(), null, false);

extractionRequest.ContentFieldNames = contentFieldNames;


Int16 i = 0;

while (i <= Convert.ToInt16(System.Configuration.ConfigurationManager.AppSettings["NumRetries"]))

{

try

{

extractionResult = extractionsContext.ExtractWithNotes(extractionRequest); //works

break;

}

catch (Exception ex)

{

sErrMsg = sErrMsg + ex.Message;

break;

}

}


}

Best Answer