public final class FixedRateLoanOrder extends LoanOrder implements Comparable<FixedRateLoanOrder>
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.
Constructor and Description |
---|
FixedRateLoanOrder(Order.OrderType type,
String currency,
BigDecimal tradableAmount,
int dayPeriod,
String id,
Date timestamp,
BigDecimal rate) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(FixedRateLoanOrder fixedRateLoanOrder) |
boolean |
equals(Object obj) |
BigDecimal |
getRate() |
int |
hashCode() |
getCurrency, getDayPeriod, getId, getTimestamp, getTradableAmount, getType, toString
public FixedRateLoanOrder(Order.OrderType type, String currency, BigDecimal tradableAmount, int dayPeriod, String id, Date timestamp, BigDecimal rate)
type
- Either BID (debtor) or ASK (creditor)currency
- The loan currency codetradableAmount
- 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 daypublic BigDecimal getRate()
public int compareTo(FixedRateLoanOrder fixedRateLoanOrder)
compareTo
in interface Comparable<FixedRateLoanOrder>
Copyright © 2012–2016 Xeiam, LLC. All rights reserved.