Hello,
I have an issue related to IntradayPricingExtractionRequest for some RIC codes. The content field names and RIC code validation is successful. However while the ExtractWithNotes call returns results for the RIC code "BGN=", for another one "CIDKK1MD=" it just hangs.
The sample code in bellow:
static void Main(string[] args) { var dssApiUri = new Uri("https://selectapi.datascope.refinitiv.com/restapi/v1/"); List<string> contentFieldNames = new List<string>() { "RIC", "Trade Date", "Previous Close Date", "Previous Close Price" }; var extractionsContext = new ExtractionsContext(dssApiUri, username, password) { Preferences = { RespondAsync = false } }; var extractionResult = GetInstrumentIntradayData(extractionsContext, "BGN=", contentFieldNames); //ProcessResults(extractionResult, contentFieldNames); extractionResult = GetInstrumentIntradayData(extractionsContext, "CIDKK1MD=", contentFieldNames); //ProcessResults(extractionResult, contentFieldNames); } public static ExtractionResult GetInstrumentIntradayData(ExtractionsContext extractionsContext, string ricCode, List<string> contentFieldNames) { // Check if field names are available var availableFieldNames = extractionsContext.GetValidContentFieldTypes(ReportTemplateTypes.IntradayPricing); var unavailableFieldNames = contentFieldNames.Where(x => !availableFieldNames.Any(f => f.Name == x)); if (unavailableFieldNames.Any()) throw new Exception($"The following content fields are not available: {string.Join(", ", unavailableFieldNames)}"); // Pre-Validate the instruments var validatedIdentifiers = extractionsContext.InstrumentListOperations.ValidateIdentifiers( new[] { new InstrumentIdentifier { Identifier = ricCode, IdentifierType = IdentifierType.Ric} }, false); if (validatedIdentifiers.ValidationResult.ValidInstrumentCount != 1) throw new Exception($"The RIC identifier {ricCode} is not valid"); // Extract data var extractionRequest = new IntradayPricingExtractionRequest { IdentifierList = InstrumentIdentifierList.Create(validatedIdentifiers.ValidatedInstruments.ToArray(), null, false), Condition = new IntradayPricingCondition() { ScalableCurrency = true }, ContentFieldNames = contentFieldNames.ToArray() }; return extractionsContext.ExtractWithNotes(extractionRequest); }
Thanks,
Andrei