@Test(expected = IllegalArgumentException.class) public void testExchangeAdapterThrowsExceptionIfTimeoutConfigIsMissing() { PowerMock.reset(networkConfig); expect(networkConfig.getConnectionTimeout()).andReturn(0); PowerMock.replayAll(); new KrakenExchangeAdapter().init(exchangeConfig); PowerMock.verifyAll(); }
@Override public void init(ExchangeConfig config) { LOG.info(() -> "About to initialise Kraken ExchangeConfig: " + config); setAuthenticationConfig(config); setNetworkConfig(config); setOtherConfig(config); nonce = System.currentTimeMillis() / 1000; initSecureMessageLayer(); initGson(); }
KrakenExchangeAdapter extends AbstractExchangeAdapter implements ExchangeAdapter { @Override public void init(ExchangeConfig config) { LOG.info(() -> "About to initialise Kraken ExchangeConfig: " + config); setAuthenticationConfig(config); setNetworkConfig(config); setOtherConfig(config); nonce = System.currentTimeMillis() / 1000; initSecureMessageLayer(); initGson(); } }
KrakenExchangeAdapter extends AbstractExchangeAdapter implements ExchangeAdapter { @Override public void init(ExchangeConfig config) { LOG.info(() -> "About to initialise Kraken ExchangeConfig: " + config); setAuthenticationConfig(config); setNetworkConfig(config); setOtherConfig(config); nonce = System.currentTimeMillis() / 1000; initSecureMessageLayer(); initGson(); }  }
KrakenExchangeAdapter extends AbstractExchangeAdapter implements ExchangeAdapter { @Override public void init(ExchangeConfig config) { LOG.info(() -> "About to initialise Kraken ExchangeConfig: " + config); setAuthenticationConfig(config); setNetworkConfig(config); setOtherConfig(config); nonce = System.currentTimeMillis() / 1000; initSecureMessageLayer(); initGson(); }  @Override void init(ExchangeConfig config); @Override MarketOrderBook getMarketOrders(String marketId); @Override List<OpenOrder> getYourOpenOrders(String marketId); @Override String createOrder(
      String marketId, OrderType orderType, BigDecimal quantity, BigDecimal price); @Override boolean cancelOrder(String orderId, String marketIdNotNeeded); @Override BigDecimal getLatestMarketPrice(String marketId); @Override BalanceInfo getBalanceInfo(); @Override BigDecimal getPercentageOfBuyOrderTakenForExchangeFee(String marketId); @Override BigDecimal getPercentageOfSellOrderTakenForExchangeFee(String marketId); @Override String getImplName(); @Override Ticker getTicker(String marketId); }
KrakenExchangeAdapter extends AbstractExchangeAdapter implements ExchangeAdapter { @Override public void init(ExchangeConfig config) { LOG.info(() -> "About to initialise Kraken ExchangeConfig: " + config); setAuthenticationConfig(config); setNetworkConfig(config); setOtherConfig(config); nonce = System.currentTimeMillis() / 1000; initSecureMessageLayer(); initGson(); }  @Override void init(ExchangeConfig config); @Override MarketOrderBook getMarketOrders(String marketId); @Override List<OpenOrder> getYourOpenOrders(String marketId); @Override String createOrder(
      String marketId, OrderType orderType, BigDecimal quantity, BigDecimal price); @Override boolean cancelOrder(String orderId, String marketIdNotNeeded); @Override BigDecimal getLatestMarketPrice(String marketId); @Override BalanceInfo getBalanceInfo(); @Override BigDecimal getPercentageOfBuyOrderTakenForExchangeFee(String marketId); @Override BigDecimal getPercentageOfSellOrderTakenForExchangeFee(String marketId); @Override String getImplName(); @Override Ticker getTicker(String marketId);  }