OrderInfoBuilder
Package: velox.api.layer1.data
Type: Class
Inheritance: java.lang.Object รขโ โ OrderInfoBuilder
Descriptionโ
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.
Constructorsโ
OrderInfoBuilderโ
public OrderInfoBuilder(String instrumentAlias, String orderId, boolean isBuy, OrderType type, String clientId, boolean doNotIncrease)
Methodsโ
getInstrumentAliasโ
String getInstrumentAlias()
setInstrumentAliasโ
OrderInfoBuilder setInstrumentAlias(String instrumentAlias)
getOrderIdโ
String getOrderId()
setOrderIdโ
OrderInfoBuilder setOrderId(String orderId)
isBuyโ
boolean isBuy()
setBuyโ
OrderInfoBuilder setBuy(boolean isBuy)
getTypeโ
OrderType getType()
setTypeโ
OrderInfoBuilder setType(OrderType type)
getClientIdโ
String getClientId()
setClientIdโ
OrderInfoBuilder setClientId(String clientId)
getExchangeIdโ
String getExchangeId()
setExchangeIdโ
OrderInfoBuilder setExchangeId(String exchangeId)
isDoNotIncreaseโ
boolean isDoNotIncrease()
setDoNotIncreaseโ
OrderInfoBuilder setDoNotIncrease(boolean doNotIncrease)
getFilledโ
int getFilled()
setFilledโ
OrderInfoBuilder setFilled(int filled)
getUnfilledโ
int getUnfilled()
setUnfilledโ
OrderInfoBuilder setUnfilled(int unfilled)
getAverageFillPriceโ
double getAverageFillPrice()
setAverageFillPriceโ
OrderInfoBuilder setAverageFillPrice(double averageFillPrice)
getDurationโ
OrderDuration getDuration()
setDurationโ
OrderInfoBuilder setDuration(OrderDuration duration)
getStatusโ
OrderStatus getStatus()
setStatusโ
OrderInfoBuilder setStatus(OrderStatus status)
getLimitPriceโ
double getLimitPrice()
setLimitPriceโ
OrderInfoBuilder setLimitPrice(double limitPrice)
getStopPriceโ
double getStopPrice()
setStopPriceโ
OrderInfoBuilder setStopPrice(double stopPrice)
isStopTriggeredโ
boolean isStopTriggered()
setStopTriggeredโ
OrderInfoBuilder setStopTriggered(boolean isStopTriggered)
getModificationUtcTimeโ
long getModificationUtcTime()
setModificationUtcTimeโ
OrderInfoBuilder setModificationUtcTime(long modificationUtcTime)
isSimulatedโ
boolean isSimulated()
setSimulatedโ
OrderInfoBuilder setSimulated(boolean isSimulated)
isDuplicateโ
boolean isDuplicate()
setDuplicateโ
OrderInfoBuilder setDuplicate(boolean isDuplicate)
getAccountIdโ
String getAccountId()
setAccountIdโ
OrderInfoBuilder setAccountId(String accountId)
markAllChangedโ
OrderInfoBuilder markAllChanged()
markAllUnchangedโ
OrderInfoBuilder markAllUnchanged()
buildโ
OrderInfoUpdate build()