docs: public static UserTrades adaptTradeHistory(LakeBTCTradeResponse[] transactions) {
  
      List<UserTrade> trades = new ArrayList<>();
      long lastTradeId = 0;
      for (LakeBTCTradeResponse trade : transactions) {
        final OrderType orderType = trade.getType().startsWith("buy") ? OrderType.BID : OrderType.ASK;
        BigDecimal originalAmount = trade.getAmount();
        BigDecimal price = trade.getTotal().abs();
        Date timestamp = DateUtils.fromMillisUtc(trade.getAt() * 1000L);
  
        final String tradeId = trade.getId();
        final CurrencyPair currencyPair = CurrencyPair.BTC_CNY;
        UserTrade userTrade =
            new UserTrade(
                orderType,
                originalAmount,
                currencyPair,
                price,
                timestamp,
                tradeId,
                null,
                null,
                Currency.getInstance(currencyPair.counter.getCurrencyCode()));
        trades.add(userTrade);
      }
  
      return new UserTrades(trades, lastTradeId, Trades.TradeSortType.SortByTimestamp);
    }