var ExtractionsContext = new ExtractionsContext(new Uri("https://hosted.datascopeapi.reuters.com/RestApi/v1/"), "", ""); //Create the request var extractionRequest = new TickHistoryRawExtractionRequest() { IdentifierList = new InstrumentIdentifierList() { InstrumentIdentifiers = new[] { new InstrumentIdentifier { Identifier = "IBM.N", IdentifierType = IdentifierType.Ric } } }, Condition = new TickHistoryRawCondition() { DaysAgo = null, MessageTimeStampIn = TickHistoryTimeOptions.GmtUtc, QueryEndDate = DateTime.UtcNow, QueryStartDate = DateTime.UtcNow - TimeSpan.FromDays(10), ReportDateRangeType = ReportDateRangeType.Range, ExtractBy = TickHistoryExtractByMode.Ric, SortBy = TickHistorySort.SingleByRic, DomainCode = TickHistoryRawDomain.MarketPrice, DisplaySourceRIC = false, Fids = "25" } }; //Extract - NOTE: If the extraction request takes more than 30 seconds the async mechansim will be used. See Key Mechanisms ExtractionsContext.Options.AutomaticDecompression = true; //Decompress gzip to plain text var extractionResult = ExtractionsContext.ExtractRaw(extractionRequest); var streamResponse = ExtractionsContext.GetReadStream(extractionResult); using (var reader = new StreamReader(streamResponse.Stream)) { //Output var result = reader.ReadLine(); if (string.IsNullOrEmpty(result)) Debug.WriteLine("No raw results returned"); else { Debug.WriteLine(result); for (var lineCount = 0; lineCount < 100 && !reader.EndOfStream; lineCount++) //Limit output results to 100 reads. { result = reader.ReadLine(); Debug.WriteLine(result); } } } //Output Notes Debug.WriteLine("NOTES:"); foreach (var note in extractionResult.Notes) Debug.WriteLine(note);