Package velox.api.layer1.data
Class StatusInfo
java.lang.Object
velox.api.layer1.data.StatusInfo
Instrument status information (PnL, number of open orders, position, etc)
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doubleif position != 0, then it contains average price at which position was openedfinal Stringinstrument currency or nullfinal StringAlias of the instrument this information relates tofinal booleanIf true, this is a duplicate of an already existing order.final intpositionfinal doublerealized (closed) PnLfinal doubleunrealized (open) PnLfinal intnumber of shares bought/sold during the dayfinal intnumber of working buy ordersfinal intnumber of working sell orders -
Constructor Summary
ConstructorsConstructorDescriptionStatusInfo(String instrumentAlias, double unrealizedPnl, double realizedPnl, String currency, int position, double averagePrice, int volume, int workingBuys, int workingSells) StatusInfo(String instrumentAlias, double unrealizedPnl, double realizedPnl, String currency, int position, double averagePrice, int volume, int workingBuys, int workingSells, boolean isDuplicate) -
Method Summary
-
Field Details
-
instrumentAlias
Alias of the instrument this information relates to -
unrealizedPnl
public final double unrealizedPnlunrealized (open) PnL -
realizedPnl
public final double realizedPnlrealized (closed) PnL -
currency
instrument currency or null -
position
public final int positionposition -
averagePrice
public final double averagePriceif position != 0, then it contains average price at which position was opened -
volume
public final int volumenumber of shares bought/sold during the day -
workingBuys
public final int workingBuysnumber of working buy orders -
workingSells
public final int workingSellsnumber of working sell orders -
isDuplicate
public final boolean isDuplicateIf true, this is a duplicate of an already existing order. Such order is expected to appear with false in this field somewhere else, so it won't be displayed in account info (to avoid seeing same order twice)
-
-
Constructor Details
-
StatusInfo
-
StatusInfo
-
-
Method Details