I failed to use api to get the intradaypricing data of InflationIndex(RIC:USCPF=ECI).
I attached my source here, can you help me to fix it?
public List<XMLUpdateEntityRequest> getIntradayPricingInformation(List<XMLUpdateEntityRequest> requests)
{
var extractionsContextResult = ReutersServiceConnect();
var extractionRequest = new IntradayPricingExtractionRequest
{
IdentifierList = InstrumentIdentifierList.Create(new[] { new InstrumentIdentifier { Identifier = "USCPF=ECI", IdentifierType = IdentifierType.Ric } }, null, false),
ContentFieldNames = new[] { "RIC", "Ask Price", "Asset Type", "Bid Price", "High Price", "Low Price", "Open Price", "Trade Date", "Volume" },
Condition = new IntradayPricingCondition { ScalableCurrency = true }
};
var extractionResult = extractionsContextResult.ExtractWithNotes(extractionRequest);
var extractedRowsResult = extractionResult.Contents;
if (!extractedRowsResult.Any())
log.Write(CSMLog.eMVerbosity.M_warning, string.Format("No rows returned"));
foreach (var row in extractedRowsResult)
{
if (row.DynamicProperties.Count > 0)
{
log.Write(CSMLog.eMVerbosity.M_warning, string.Format("Ask Price = {0}", (string)row.DynamicProperties["Ask Price"]));
}
}
return requests;
}