Package velox.api.layer1.data
Class StatusInfoBuilder
java.lang.Object
velox.api.layer1.data.StatusInfoBuilder
Modifiable version of StatusInfo. This one can be edited and
then transformed into StatusInfo.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()doubleintdoubledoubleintintintbooleansetAveragePrice(double averagePrice) setCurrency(String currency) setDuplicate(boolean isDuplicate) setInstrumentAlias(String instrumentAlias) setPosition(int position) setRealizedPnl(double realizedPnl) setUnrealizedPnl(double unrealizedPnl) setVolume(int volume) setWorkingBuys(int workingBuys) setWorkingSells(int workingSells)
-
Constructor Details
-
StatusInfoBuilder
public StatusInfoBuilder() -
StatusInfoBuilder
-
-
Method Details
-
build
-
getInstrumentAlias
-
setInstrumentAlias
-
getUnrealizedPnl
public double getUnrealizedPnl() -
setUnrealizedPnl
-
getRealizedPnl
public double getRealizedPnl() -
setRealizedPnl
-
getCurrency
-
setCurrency
-
getPosition
public int getPosition() -
setPosition
-
getAveragePrice
public double getAveragePrice() -
setAveragePrice
-
getVolume
public int getVolume() -
setVolume
-
getWorkingBuys
public int getWorkingBuys() -
setWorkingBuys
-
getWorkingSells
public int getWorkingSells() -
setWorkingSells
-
setDuplicate
-
isDuplicate
public boolean isDuplicate()
-