docs: public static BigDecimal getExpectedTransferFee(
        final ITransferFeeSource transferFeeSource,
        final String counterparty,
        final String currency,
        final BigDecimal quantity,
        final OrderType type)
        throws IOException {
      if (currency.equals("XRP")) {
        return BigDecimal.ZERO;
      }
      if (counterparty.isEmpty()) {
        return BigDecimal.ZERO;
      }
      final BigDecimal transferFeeRate = transferFeeSource.getTransferFeeRate(counterparty);
      if ((transferFeeRate.compareTo(BigDecimal.ZERO) > 0) && (type == OrderType.ASK)) {
        // selling/sending the base currency so will incur a transaction fee on it
        return quantity.multiply(transferFeeRate).abs();
      } else {
        return BigDecimal.ZERO;
      }
    }