String direction = loanOrder.getType() == OrderType.BID ? "loan" : "lend";
try {
BitfinexOfferStatusResponse newOrderResponse =
bitfinex.newOffer(apiKey, payloadCreator, signatureCreator, new BitfinexNewOfferRequest(String.valueOf(nextNonce()), loanOrder.getCurrency(), loanOrder.getTradableAmount(), new BigDecimal(
"0.0"), loanOrder.getDayPeriod(), direction));
return newOrderResponse;
} catch (BitfinexException e) {
throw new ExchangeException(e.getMessage());
}