/** * Gets the symbol in the form SYMBOL-YYYYMM or SYMBOL-YYYYMMDD as appropriate. * * @return a <code>String</code> value */ @Override public String getFullSymbol() { String symbol = getSymbol(); if(FUTURE_STRING.matcher(symbol).matches()) { return symbol; } return String.format("%s-%s", //$NON-NLS-1$ symbol, getExpiryAsString()); } /**
Future future = (Future)instrument; positionKey = PositionKeyFactory.createFutureKey(future.getSymbol(), future.getExpiryAsString(), rpcAccount, rpcTraderId);