public class StatusInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
averagePrice
if position != 0, then it contains average price at which position was
opened
|
java.lang.String |
currency
instrument currency or null
|
java.lang.String |
instrumentAlias
Alias of the instrument this information relates to
|
boolean |
isDuplicate
If true, this is a duplicate of an already existing order.
|
int |
position
position
|
double |
realizedPnl
realized (closed) PnL
|
double |
unrealizedPnl
unrealized (open) PnL
|
int |
volume
number of shares bought/sold during the day
|
int |
workingBuys
number of working buy orders
|
int |
workingSells
number of working sell orders
|
Constructor and Description |
---|
StatusInfo(java.lang.String instrumentAlias,
double unrealizedPnl,
double realizedPnl,
java.lang.String currency,
int position,
double averagePrice,
int volume,
int workingBuys,
int workingSells) |
StatusInfo(java.lang.String instrumentAlias,
double unrealizedPnl,
double realizedPnl,
java.lang.String currency,
int position,
double averagePrice,
int volume,
int workingBuys,
int workingSells,
boolean isDuplicate) |
Modifier and Type | Method and Description |
---|---|
StatusInfoBuilder |
toBuilder() |
java.lang.String |
toString() |
public final java.lang.String instrumentAlias
public final double unrealizedPnl
public final double realizedPnl
public final java.lang.String currency
public final int position
public final double averagePrice
public final int volume
public final int workingBuys
public final int workingSells
public final boolean isDuplicate
public StatusInfo(java.lang.String instrumentAlias, double unrealizedPnl, double realizedPnl, java.lang.String currency, int position, double averagePrice, int volume, int workingBuys, int workingSells)
public StatusInfo(java.lang.String instrumentAlias, double unrealizedPnl, double realizedPnl, java.lang.String currency, int position, double averagePrice, int volume, int workingBuys, int workingSells, boolean isDuplicate)
public StatusInfoBuilder toBuilder()
public java.lang.String toString()
toString
in class java.lang.Object