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