KrakenExchange extends BaseExchange implements Exchange { @Override public void remoteInit() throws IOException { KrakenAssetPairs assetPairs = ((KrakenMarketDataServiceRaw) marketDataService).getKrakenAssetPairs(); KrakenAssets assets = ((KrakenMarketDataServiceRaw) marketDataService).getKrakenAssets(); KrakenUtils.clearAssets(); exchangeMetaData = KrakenAdapters.adaptToExchangeMetaData( exchangeMetaData, assetPairs.getAssetPairMap(), assets.getAssetPairMap()); }  @Override ExchangeSpecification getDefaultExchangeSpecification(); @Override SynchronizedValueFactory<Long> getNonceFactory(); @Override void remoteInit();  }
@Test public void minimunOrderSizeTest() throws IOException { exchange.remoteInit(); Map<CurrencyPair, CurrencyPairMetaData> currencyPairs = exchange.getExchangeMetaData().getCurrencyPairs(); Map<Currency, CurrencyMetaData> currencies = exchange.getExchangeMetaData().getCurrencies(); Assert.assertEquals( 1, currencyPairs.get(CurrencyPair.ADA_BTC).getMinimumAmount().doubleValue(), 0.01); Assert.assertEquals( 1, currencyPairs.get(CurrencyPair.ADA_ETH).getMinimumAmount().doubleValue(), 0.01); Assert.assertEquals( 1, currencyPairs.get(CurrencyPair.ADA_USD).getMinimumAmount().doubleValue(), 0.01); Assert.assertEquals( 0.000002, currencyPairs.get(CurrencyPair.BCH_USD).getMinimumAmount().doubleValue(), 0.000001); Assert.assertEquals( 1, currencyPairs.get(CurrencyPair.ATOM_ETH).getMinimumAmount().doubleValue(), 0.01); Assert.assertEquals(0.3, currencies.get(Currency.ADA).getWithdrawalFee().doubleValue(), 0.01); }