@Override public Instrument resolveSymbol(String inSymbol) { if(FIX_SYMBOL_PATTERN.matcher(inSymbol).matches()) { return Future.fromString(inSymbol); } return null; } /* (non-Javadoc)
@Override public Instrument extract(FieldMap inMessage) { // if the symbol already contains the expiry information, go ahead and create it // if it doesn't, piece the expiry onto the symbol and use that String symbol = getSymbol(inMessage); if(symbol == null) { return null; } try { return Future.fromString(symbol); } catch (IllegalArgumentException ignored) {} // assume the symbol is the underlying, not the full symbol (this is the common case, it seems) // therefore, use the multi-argument constructor instead String expiry = OptionFromMessage.getExpiry(inMessage); if(expiry == null) { return null; } Future future = new Future(symbol, expiry); return future; } /* (non-Javadoc)
return Future.fromString(inSymbol); } catch (IllegalArgumentException ignored) {} try {