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>
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:
-
Constructor Summary
ConstructorDescriptionFixedRateLoanOrder
(Order.OrderType type, String currency, BigDecimal originalAmount, int dayPeriod, String id, Date timestamp, BigDecimal rate) -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(FixedRateLoanOrder fixedRateLoanOrder) boolean
getRate()
int
hashCode()
Methods inherited from class org.knowm.xchange.dto.LoanOrder
getCurrency, getDayPeriod, getId, getOriginalAmount, getTimestamp, getType, toString
-
Constructor Details
-
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 Details
-
getRate
- Returns:
- The fixed rate of return for a day
-
compareTo
- Specified by:
compareTo
in interfaceComparable<FixedRateLoanOrder>
-
hashCode
public int hashCode() -
equals
-