*
* @throws java.lang.IllegalArgumentException if the result were to be less than lot size for given currency pair
*/
protected static BigInteger getLots(Order order) {
CurrencyPair pair = order.getCurrencyPair();
String currency = pair.baseSymbol;
BigDecimal lotMulti;
if (Currencies.BTC.equals(currency))
lotMulti = new BigDecimal("100");
else if (Currencies.LTC.equals(currency))
lotMulti = new BigDecimal("10");
else if (CurrencyPair.EUR_USD.equals(pair))
lotMulti = BigDecimal.ONE;
else if (CurrencyPair.DOGE_BTC.equals(pair))
lotMulti = new BigDecimal(".001");
else if (new CurrencyPair("XMR", Currencies.BTC).equals(pair))
lotMulti = new BigDecimal("100");
else if (new CurrencyPair("BCN", Currencies.BTC).equals(pair))
lotMulti = new BigDecimal(".01");
else if (new CurrencyPair("XDN", Currencies.BTC).equals(pair))
lotMulti = new BigDecimal(".01");
else
throw new IllegalArgumentException("Unknown currency pair " + pair);
BigDecimal lots = order.getTradableAmount().multiply(lotMulti);