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:
  • Constructor Details

    • 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 ask
      currency - The loan currency
      originalAmount - Amount to be ordered / amount that was ordered
      dayPeriod - Duration of loan in days
      id - An identifier that uniquely identifies the order
      timestamp - The timestamp on the order according to the exchange's server, null if not provided
  • Method Details

    • 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()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object