Class OrderDTO


  • public final class OrderDTO
    extends Object
    DTO representing an order. A market order is a request by an investor to buy or sell in the current market.
    • Method Detail

      • getTrade

        public final Optional<TradeDTO> getTrade​(String tradeId)
        Returns trade from its id.
        Parameters:
        tradeId - trade id
        Returns:
        trade
      • 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 or ask.
      • getStrategy

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

        public CurrencyPairDTO getCurrencyPair()
        Currency pair.
      • getAveragePrice

        public CurrencyAmountDTO getAveragePrice()
        Weighted Average price of the fills in the order.
      • getLeverage

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

        public CurrencyAmountDTO 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<TradeDTO> getTrades()
        All trades related to order.