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()doubleintdoubledoubleintintintbooleanvoidsetAccountId(String accountId) It was forgotten to make this method returnStatusInfoBuilderinstead ofvoidin the original, so useaccountId(String)instead if you want to chain calls.setAveragePrice(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() -
setAccountId
It was forgotten to make this method returnStatusInfoBuilderinstead ofvoidin the original, so useaccountId(String)instead if you want to chain calls. (changing the return type toStatusInfoBuilderwould break the API). -
accountId
-
getAccountId
-