BigDecimal tradableAmount = result.getAmount();
Date timeStamp = DateUtils.fromMillisUtc(result.getTimestamp() * 1000L);
String orderId = String.valueOf(result.getOrderId());
String tradeId = String.valueOf(entry.getKey());
CurrencyPair currencyPair = new CurrencyPair(pair[0].toUpperCase(), pair[1].toUpperCase());
trades.add(new Trade(type, tradableAmount, currencyPair, price, timeStamp, tradeId, orderId));
}
return new Trades(trades, TradeSortType.SortByTimestamp);
}