public class OrderInfoBuilder
extends java.lang.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 and Description |
|---|
OrderInfoBuilder(java.lang.String instrumentAlias,
java.lang.String orderId,
boolean isBuy,
OrderType type,
java.lang.String clientId,
boolean doNotIncrease) |
OrderInfoBuilder(java.lang.String instrumentAlias,
java.lang.String orderId,
boolean isBuy,
OrderType type,
java.lang.String clientId,
boolean doNotIncrease,
int filled,
boolean filledChanged,
int unfilled,
boolean unfilledChanged,
double averageFillPrice,
boolean averageFillPriceChanged,
OrderDuration duration,
boolean durationChanged,
OrderStatus status,
boolean statusChanged,
double limitPrice,
boolean limitPriceChanged,
double stopPrice,
boolean stopPriceChanged,
boolean stopTriggered,
boolean stopTriggeredChanged,
long modificationUtcTime,
boolean modificationTimeChanged,
boolean isSimulated) |
public OrderInfoBuilder(java.lang.String instrumentAlias,
java.lang.String orderId,
boolean isBuy,
OrderType type,
java.lang.String clientId,
boolean doNotIncrease)
public OrderInfoBuilder(java.lang.String instrumentAlias,
java.lang.String orderId,
boolean isBuy,
OrderType type,
java.lang.String clientId,
boolean doNotIncrease,
int filled,
boolean filledChanged,
int unfilled,
boolean unfilledChanged,
double averageFillPrice,
boolean averageFillPriceChanged,
OrderDuration duration,
boolean durationChanged,
OrderStatus status,
boolean statusChanged,
double limitPrice,
boolean limitPriceChanged,
double stopPrice,
boolean stopPriceChanged,
boolean stopTriggered,
boolean stopTriggeredChanged,
long modificationUtcTime,
boolean modificationTimeChanged,
boolean isSimulated)
public java.lang.String getInstrumentAlias()
public OrderInfoBuilder setInstrumentAlias(java.lang.String instrumentAlias)
public java.lang.String getOrderId()
public OrderInfoBuilder setOrderId(java.lang.String orderId)
public boolean isBuy()
public OrderInfoBuilder setBuy(boolean isBuy)
public OrderType getType()
public OrderInfoBuilder setType(OrderType type)
public java.lang.String getClientId()
public OrderInfoBuilder setClientId(java.lang.String clientId)
public boolean isDoNotIncrease()
public OrderInfoBuilder setDoNotIncrease(boolean doNotIncrease)
public int getFilled()
public OrderInfoBuilder setFilled(int filled)
public int getUnfilled()
public OrderInfoBuilder setUnfilled(int unfilled)
public double getAverageFillPrice()
public OrderInfoBuilder setAverageFillPrice(double averageFillPrice)
public OrderDuration getDuration()
public OrderInfoBuilder setDuration(OrderDuration duration)
public OrderStatus getStatus()
public OrderInfoBuilder setStatus(OrderStatus status)
public double getLimitPrice()
public OrderInfoBuilder setLimitPrice(double limitPrice)
public double getStopPrice()
public OrderInfoBuilder setStopPrice(double stopPrice)
public boolean isStopTriggered()
public OrderInfoBuilder setStopTriggered(boolean isStopTriggered)
public long getModificationUtcTime()
public OrderInfoBuilder setModificationUtcTime(long modificationUtcTime)
public boolean isSimulated()
public OrderInfoBuilder setSimulated(boolean isSimulated)
public boolean isDuplicate()
public OrderInfoBuilder setDuplicate(boolean isDuplicate)
public OrderInfoBuilder markAllChanged()
public OrderInfoBuilder markAllUnchanged()
public OrderInfoUpdate build()