Package org.knowm.xchange.dto
Class LoanOrder
- java.lang.Object
-
- org.knowm.xchange.dto.LoanOrder
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FixedRateLoanOrder
,FloatingRateLoanOrder
public class LoanOrder extends Object implements Serializable
Data object representing an order for a loan- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LoanOrder(Order.OrderType type, String currency, BigDecimal originalAmount, int dayPeriod, String id, Date timestamp)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getCurrency()
int
getDayPeriod()
String
getId()
BigDecimal
getOriginalAmount()
Date
getTimestamp()
Order.OrderType
getType()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
LoanOrder
public LoanOrder(Order.OrderType type, String currency, BigDecimal originalAmount, int dayPeriod, String id, Date timestamp)
Constructor- Parameters:
type
- Order type i.e. bid or askcurrency
- The loan currencyoriginalAmount
- Amount to be ordered / amount that was ordereddayPeriod
- Duration of loan in daysid
- An identifier that uniquely identifies the ordertimestamp
- The timestamp on the order according to the exchange's server, null if not provided
-
-
Method Detail
-
getType
public Order.OrderType getType()
-
getCurrency
public String getCurrency()
-
getOriginalAmount
public BigDecimal getOriginalAmount()
-
getDayPeriod
public int getDayPeriod()
-
getId
public String getId()
-
getTimestamp
public Date getTimestamp()
-
-