Class OrderInfoBuilder

java.lang.Object
velox.api.layer1.data.OrderInfoBuilder

public class OrderInfoBuilder extends Object

Modifiable version of OrderInfo/OrderInfoUpdate. This one can be edited and then transformed into OrderInfoUpdate.

Note, that while correctly marking changes (markAllChanged(), markAllUnchanged()) does not do anything in current version, it's still advised to do it, since it's pretty simple and might be used for something later.

  • Constructor Details

    • OrderInfoBuilder

      public OrderInfoBuilder(String instrumentAlias, String orderId, boolean isBuy, OrderType type, String clientId, boolean doNotIncrease)
  • Method Details

    • getInstrumentAlias

      public String getInstrumentAlias()
    • setInstrumentAlias

      public OrderInfoBuilder setInstrumentAlias(String instrumentAlias)
    • getOrderId

      public String getOrderId()
    • setOrderId

      public OrderInfoBuilder setOrderId(String orderId)
    • isBuy

      public boolean isBuy()
    • setBuy

      public OrderInfoBuilder setBuy(boolean isBuy)
    • getType

      public OrderType getType()
    • setType

      public OrderInfoBuilder setType(OrderType type)
    • getClientId

      public String getClientId()
    • setClientId

      public OrderInfoBuilder setClientId(String clientId)
    • getExchangeId

      public String getExchangeId()
    • setExchangeId

      public OrderInfoBuilder setExchangeId(String exchangeId)
    • isDoNotIncrease

      public boolean isDoNotIncrease()
    • setDoNotIncrease

      public OrderInfoBuilder setDoNotIncrease(boolean doNotIncrease)
    • getFilled

      public int getFilled()
    • setFilled

      public OrderInfoBuilder setFilled(int filled)
    • getUnfilled

      public int getUnfilled()
    • setUnfilled

      public OrderInfoBuilder setUnfilled(int unfilled)
    • getAverageFillPrice

      public double getAverageFillPrice()
    • setAverageFillPrice

      public OrderInfoBuilder setAverageFillPrice(double averageFillPrice)
    • getDuration

      public OrderDuration getDuration()
    • setDuration

      public OrderInfoBuilder setDuration(OrderDuration duration)
    • getStatus

      public OrderStatus getStatus()
    • setStatus

      public OrderInfoBuilder setStatus(OrderStatus status)
    • getLimitPrice

      public double getLimitPrice()
    • setLimitPrice

      public OrderInfoBuilder setLimitPrice(double limitPrice)
    • getStopPrice

      public double getStopPrice()
    • setStopPrice

      public OrderInfoBuilder setStopPrice(double stopPrice)
    • isStopTriggered

      public boolean isStopTriggered()
    • setStopTriggered

      public OrderInfoBuilder setStopTriggered(boolean isStopTriggered)
    • getModificationUtcTime

      public long getModificationUtcTime()
    • setModificationUtcTime

      public OrderInfoBuilder setModificationUtcTime(long modificationUtcTime)
    • isSimulated

      public boolean isSimulated()
    • setSimulated

      public OrderInfoBuilder setSimulated(boolean isSimulated)
    • isDuplicate

      public boolean isDuplicate()
    • setDuplicate

      public OrderInfoBuilder setDuplicate(boolean isDuplicate)
    • getAccountId

      public String getAccountId()
    • setAccountId

      public OrderInfoBuilder setAccountId(String accountId)
    • markAllChanged

      public OrderInfoBuilder markAllChanged()
    • markAllUnchanged

      public OrderInfoBuilder markAllUnchanged()
    • build

      public OrderInfoUpdate build()