Class StatusInfo

java.lang.Object
velox.api.layer1.data.StatusInfo

public class StatusInfo
extends java.lang.Object
Instrument status information (PnL, number of open orders, position, etc)
  • Field Summary

    Fields 
    Modifier and Type Field 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 Summary

    Constructors 
    Constructor 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)  
  • Method Summary

    Modifier and Type Method Description
    StatusInfoBuilder toBuilder()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • instrumentAlias

      public final java.lang.String instrumentAlias
      Alias of the instrument this information relates to
    • unrealizedPnl

      public final double unrealizedPnl
      unrealized (open) PnL
    • realizedPnl

      public final double realizedPnl
      realized (closed) PnL
    • currency

      public final java.lang.String currency
      instrument currency or null
    • position

      public final int position
      position
    • averagePrice

      public final double averagePrice
      if position != 0, then it contains average price at which position was opened
    • volume

      public final int volume
      number of shares bought/sold during the day
    • workingBuys

      public final int workingBuys
      number of working buy orders
    • workingSells

      public final int workingSells
      number of working sell orders
    • isDuplicate

      public final boolean isDuplicate
      If 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

      public StatusInfo​(java.lang.String instrumentAlias, double unrealizedPnl, double realizedPnl, java.lang.String currency, int position, double averagePrice, int volume, int workingBuys, int workingSells)
    • StatusInfo

      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)
  • Method Details