final boolean isCall = security.getOptionType() == OptionType.CALL;
final double strike = security.getStrike();
final ZonedDateTime expiryDT = security.getExpiry().getExpiry();
final Currency ccy = security.getCurrency();
final double unitNotional = security.getPointValue();
final ExerciseDecisionType exerciseType = security.getExerciseType().accept(ExerciseTypeAnalyticsVisitorAdapter.getInstance());
// TODO We need to know how long after expiry settlement occurs?
// IndexOptions are obviously Cash Settled
final LocalDate settlementDate = expiryDT.toLocalDate(); // FIXME Needs to come from convention
//TODO settlement type needs to come from trade or convention
return new EquityIndexOptionDefinition(isCall, strike, ccy, exerciseType, expiryDT, settlementDate, unitNotional, SettlementType.CASH);