startDateConstraint = DateConstraint.parse(endDateConstraint).minus(Period.ofDays(2)).toString();
}
}
}
String marketDataModeConstraint = anyConstraintOrNull(constraints, MARKET_DATA_MODE_PROPERTY);
HistoricalViewEvaluationMarketDataMode marketDataMode = marketDataModeConstraint != null ?
HistoricalViewEvaluationMarketDataMode.parse(marketDataModeConstraint) : HistoricalViewEvaluationMarketDataMode.HISTORICAL;
Security security = null;
if (ComputationTargetType.SECURITY.equals(target.getType())) {
security = target.getSecurity();
} else if (ComputationTargetType.POSITION.equals(target.getType())) {