Package org.knowm.xchange.dto.trade
Class FloatingRateLoanOrder
java.lang.Object
org.knowm.xchange.dto.LoanOrder
org.knowm.xchange.dto.trade.FloatingRateLoanOrder
- All Implemented Interfaces:
Serializable
,Comparable<FloatingRateLoanOrder>
public final class FloatingRateLoanOrder
extends LoanOrder
implements Comparable<FloatingRateLoanOrder>
DTO representing a floating rate loan order A floating rate loan order is a loan order whose rate
is determined by the market. This type of loan order can be preferable for creditors when loans
have a callable provision (i.e. the debtor can choose to pay off the loan early and acquire
another loan at a more favorable rate).
- See Also:
-
Constructor Summary
ConstructorDescriptionFloatingRateLoanOrder
(Order.OrderType type, String currency, BigDecimal originalAmount, int dayPeriod, String id, Date timestamp, BigDecimal rate) -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(FloatingRateLoanOrder order) getRate()
void
setRate
(BigDecimal rate) Methods inherited from class org.knowm.xchange.dto.LoanOrder
equals, getCurrency, getDayPeriod, getId, getOriginalAmount, getTimestamp, getType, hashCode, toString
-
Constructor Details
-
FloatingRateLoanOrder
public FloatingRateLoanOrder(Order.OrderType type, String currency, BigDecimal originalAmount, int dayPeriod, String id, Date timestamp, BigDecimal rate) - Parameters:
type
- Either BID (debtor) or ASK (creditor)currency
- The loan currency codeoriginalAmount
- Units of currencydayPeriod
- Loan duration in daysid
- An id (usually provided by the exchange)timestamp
- The absolute time for this order
-
-
Method Details
-
getRate
-
setRate
-
compareTo
- Specified by:
compareTo
in interfaceComparable<FloatingRateLoanOrder>
-