docs: public static OrderStatus adaptOrderStatus(CoinbaseProOrder order) {
  
      if (order.getStatus().equals("pending")) {
        return OrderStatus.PENDING_NEW;
      }
  
      if (order.getStatus().equals("done") || order.getStatus().equals("settled")) {
  
        if (order.getDoneReason().equals("filled")) {
          return OrderStatus.FILLED;
        }
  
        if (order.getDoneReason().equals("canceled")) {
          return OrderStatus.CANCELED;
        }
  
        return OrderStatus.UNKNOWN;
      }
  
      if (order.getFilledSize().signum() == 0) {
  
        if (order.getStatus().equals("open") && order.getStop() != null) {
          // This is a massive edge case of a stop triggering but not immediately
          // fulfilling.  STOPPED status is only currently used by the HitBTC and
          // YoBit implementations and in both cases it looks like a
          // misunderstanding and those should return CANCELLED.  Should we just
          // remove this status?
          return OrderStatus.STOPPED;
        }
  
        return OrderStatus.NEW;
      }
  
      if (order.getFilledSize().compareTo(BigDecimal.ZERO) > 0
          // if size >= filledSize order should be partially filled
          && order.getSize().compareTo(order.getFilledSize()) >= 0)
        return OrderStatus.PARTIALLY_FILLED;
  
      return OrderStatus.UNKNOWN;
    }