Package org.knowm.xchange.dto.trade
Class FixedRateLoanOrder
- java.lang.Object
-
- org.knowm.xchange.dto.LoanOrder
-
- org.knowm.xchange.dto.trade.FixedRateLoanOrder
-
- All Implemented Interfaces:
Serializable
,Comparable<FixedRateLoanOrder>
public final class FixedRateLoanOrder extends LoanOrder implements Comparable<FixedRateLoanOrder>
DTO representing a fixed rate loan order A fixed rate loan order lets you specify a fixed rate for your loan order. When offering loan orders, you should be aware as to whether or not loans have callable or putable provisions. These provisions can serve to be advantageous to either the debtor or the creditor.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FixedRateLoanOrder(Order.OrderType type, String currency, BigDecimal originalAmount, int dayPeriod, String id, Date timestamp, BigDecimal rate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(FixedRateLoanOrder fixedRateLoanOrder)
boolean
equals(Object obj)
BigDecimal
getRate()
int
hashCode()
-
Methods inherited from class org.knowm.xchange.dto.LoanOrder
getCurrency, getDayPeriod, getId, getOriginalAmount, getTimestamp, getType, toString
-
-
-
-
Constructor Detail
-
FixedRateLoanOrder
public FixedRateLoanOrder(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 orderrate
- The fixed rate of return for a day
-
-
Method Detail
-
getRate
public BigDecimal getRate()
- Returns:
- The fixed rate of return for a day
-
compareTo
public int compareTo(FixedRateLoanOrder fixedRateLoanOrder)
- Specified by:
compareTo
in interfaceComparable<FixedRateLoanOrder>
-
-