C2Util { public static String getFuturesSymbol(FuturesTicker ticker) { String c2Symbol = C2Util.getC2RootSymbol(ticker.getSymbol()); String symbol = FuturesUtil.getFullFuturesSymbolWithOneDigitYear(c2Symbol, ticker.getExpiryMonth(), ticker.getExpiryYear()); return symbol; }  static String getFuturesSymbol(FuturesTicker ticker); static Action getTradeAction( TradeOrder order ); static SymbolType getSymbolType( TradeOrder order ); static OrderType getOrderType( TradeOrder order ); static String getC2RootSymbol(String symbol); static String getTime( ZonedDateTime zonedTime ); static final String ROOT_SYMBOL_RUSSEL2K_NYBOT; static final String ROOT_SYMBOL_RUSSEL2K_GLOBEX; static final String ROOT_SYMBOL_NASDAQ_100; static final String ROOT_SYMBOL_MINI_DOW; static final String ROOT_SYMBOL_SP500; static final String ROOT_SYMBOL_CORN; }
@Test public void testGetFuturesSymbol() { FuturesTicker ticker = FuturesTicker.getInstance(Commodity.NASDAQ100_INDEX_MINI_GLOBEX, 3, 2018); assertEquals("@NQH8", C2Util.getFuturesSymbol(ticker)); }