Class Order


  • @Entity
    public class Order
    extends BaseDomain
    Order.
    • Constructor Detail

      • Order

        public Order()
    • Method Detail

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • getId

        public Long getId()
        Technical ID.
      • getOrderId

        public String getOrderId()
        An identifier set by the exchange that uniquely identifies the order.
      • getType

        public OrderTypeDTO getType()
        Order type i.e. bid (buy) or ask (sell).
      • getStrategy

        public Strategy getStrategy()
        The strategy that created the order.
      • getCurrencyPair

        public String getCurrencyPair()
        Currency pair.
      • getAmount

        public CurrencyAmount getAmount()
        Amount that was ordered.
      • getAveragePrice

        public CurrencyAmount getAveragePrice()
        Weighted Average price of the fills in the order.
      • getMarketPrice

        public CurrencyAmount getMarketPrice()
        Market price - The price Cassandre had when the order was created.
      • getLeverage

        public String getLeverage()
        The leverage to use for margin related to this order.
      • getCumulativeAmount

        public CurrencyAmount getCumulativeAmount()
        Amount to be ordered / amount that has been matched against order on the order book/filled.
      • getUserReference

        public String getUserReference()
        An identifier provided by the user on placement that uniquely identifies the order.
      • getTimestamp

        public ZonedDateTime getTimestamp()
        The timestamp of the order.
      • getTrades

        public Set<Trade> getTrades()
        All trades related to order.
      • setId

        public void setId​(Long id)
        Technical ID.
      • setOrderId

        public void setOrderId​(String orderId)
        An identifier set by the exchange that uniquely identifies the order.
      • setType

        public void setType​(OrderTypeDTO type)
        Order type i.e. bid (buy) or ask (sell).
      • setStrategy

        public void setStrategy​(Strategy strategy)
        The strategy that created the order.
      • setCurrencyPair

        public void setCurrencyPair​(String currencyPair)
        Currency pair.
      • setAmount

        public void setAmount​(CurrencyAmount amount)
        Amount that was ordered.
      • setAveragePrice

        public void setAveragePrice​(CurrencyAmount averagePrice)
        Weighted Average price of the fills in the order.
      • setLimitPrice

        public void setLimitPrice​(CurrencyAmount limitPrice)
        Limit price.
      • setMarketPrice

        public void setMarketPrice​(CurrencyAmount marketPrice)
        Market price - The price Cassandre had when the order was created.
      • setLeverage

        public void setLeverage​(String leverage)
        The leverage to use for margin related to this order.
      • setStatus

        public void setStatus​(OrderStatusDTO status)
        Order status.
      • setCumulativeAmount

        public void setCumulativeAmount​(CurrencyAmount cumulativeAmount)
        Amount to be ordered / amount that has been matched against order on the order book/filled.
      • setUserReference

        public void setUserReference​(String userReference)
        An identifier provided by the user on placement that uniquely identifies the order.
      • setTimestamp

        public void setTimestamp​(ZonedDateTime timestamp)
        The timestamp of the order.
      • setTrades

        public void setTrades​(Set<Trade> trades)
        All trades related to order.