I try to extract the Historical reference for certain RICs. It works with ChainRICs but when I enter a RIC, there is an error of invalid identifier.
See the code example
string[] requestedFieldNames = {
"RIC",
"RIC Root",
"Expiration Date"};
//Create the request
var extractionRequest = new HistoricalReferenceExtractionRequest()
{ IdentifierList = new InstrumentIdentifierList()
{ InstrumentIdentifiers = new[] { new InstrumentIdentifier { IdentifierType = IdentifierType.Ric, Identifier = "HOZ5" } }
},
Condition = new HistoricalReferenceCondition()
{ ReportDateRangeType = ReportDateRangeType.Range,
//QueryStartDate = new DateTimeOffset(new DateTime(2014, 1, 1)),
//QueryEndDate = new DateTimeOffset(new DateTime(2014, 1, 31))
QueryStartDate = new DateTimeOffset(new DateTime(2015, 12, 1)),
QueryEndDate = new DateTimeOffset(new DateTime(2015, 12, 4))
},
ContentFieldNames = requestedFieldNames
};
//Extract - NOTE: If the extraction request takes more than 30 seconds the async mechansim will be used. See Key Mechanisms
var extractionResult = ExtractionsContext.ExtractWithNotes(extractionRequest);
var extractedRows = extractionResult.Contents;