docs: public static BitstampGenericOrder adaptOrder(
        String orderId, BitstampOrderStatusResponse bitstampOrderStatusResponse) {
  
      BitstampOrderTransaction[] bitstampTransactions = bitstampOrderStatusResponse.getTransactions();
  
      // Use only the first transaction, because we assume that for a single order id all transactions
      // will
      // be of the same currency pair
      CurrencyPair currencyPair = adaptCurrencyPair(bitstampTransactions[0]);
      Date date = bitstampTransactions[0].getDatetime();
  
      BigDecimal averagePrice =
          Arrays.stream(bitstampTransactions)
              .map(t -> t.getPrice())
              .reduce((x, y) -> x.add(y))
              .get()
              .divide(BigDecimal.valueOf(bitstampTransactions.length), 2);
  
      BigDecimal cumulativeAmount =
          Arrays.stream(bitstampTransactions)
              .map(t -> getBaseCurrencyAmountFromBitstampTransaction(t))
              .reduce((x, y) -> x.add(y))
              .get();
  
      BigDecimal totalFee =
          Arrays.stream(bitstampTransactions).map(t -> t.getFee()).reduce((x, y) -> x.add(y)).get();
  
      Order.OrderStatus orderStatus = adaptOrderStatus(bitstampOrderStatusResponse.getStatus());
  
      BitstampGenericOrder bitstampGenericOrder =
          new BitstampGenericOrder(
              null, // not discernable from response data
              null, // not discernable from the data
              currencyPair,
              orderId,
              date,
              averagePrice,
              cumulativeAmount,
              totalFee,
              orderStatus);
  
      return bitstampGenericOrder;
    }