final ValueRequirement desiredValue = Iterables.getOnlyElement(desiredValues);
final Trade trade = target.getTrade();
final Security security = trade.getSecurity();
final InstrumentDefinition<?> definition;
if (security instanceof IRFutureOptionSecurity) {
definition = optionTradeToTxnDefnConverter.convert(trade);
} else {
definition = futureTradeConverter.convert(trade);
}
final HistoricalTimeSeriesBundle timeSeries = HistoricalTimeSeriesFunctionUtils.getHistoricalTimeSeriesInputs(executionContext, inputs);
final InstrumentDerivative derivative = definitionConverter.convert(security, definition, now, timeSeries);