docs: public static Trades adaptTrades(EXXTransaction[] transactions, CurrencyPair currencyPair) {
      List<Trade> trades = new ArrayList<>();
      long lastTradeId = 0;
      for (EXXTransaction transaction : transactions) {
        final long tradeId = transaction.getTid();
        if (tradeId > lastTradeId) {
          lastTradeId = tradeId;
        }
        OrderType orderType = OrderType.BID;
        if (transaction.getType().equals("sell")) orderType = OrderType.ASK;
        trades.add(
            new Trade.Builder()
                .id(String.valueOf(transaction.getTid()))
                .originalAmount((transaction.getAmount()))
                .price(transaction.getPrice())
                .timestamp(new Date(transaction.getDate()))
                .currencyPair(currencyPair)
                .type(orderType)
                .build());
      }
  
      return new Trades(trades, lastTradeId, TradeSortType.SortByID);
    }