docs: public static UserTrades adaptTradeHistory(CoinsuperResponse<List<OrderDetail>> OrderDetails) {
      List<UserTrade> trades = new ArrayList<>();
      long lastTradeId = 0;
  
      for (OrderDetail orderDetail : OrderDetails.getData().getResult()) {
        OrderType orderType = OrderType.BID;
  
        if (orderDetail.getAction().equals("SELL")) {
          orderType = OrderType.ASK;
        }
  
        UserTrade trade =
            new UserTrade(
                orderType,
                orderDetail.getAmount().abs(),
                new CurrencyPair(orderDetail.getSymbol()),
                orderDetail.getPriceLimit().abs(),
                new Date(),
                Long.toString(orderDetail.getOrderNo()),
                Long.toString(orderDetail.getOrderNo()),
                new BigDecimal(orderDetail.getFee()),
                Currency.getInstance(orderDetail.getSymbol().toUpperCase()));
        lastTradeId = orderDetail.getOrderNo();
        trades.add(trade);
      }
      return new UserTrades(trades, lastTradeId, TradeSortType.SortByID);
    }