Class StatusInfo

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

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

    Fields
    Modifier and Type
    Field
    Description
    final double
    if position != 0, then it contains average price at which position was opened
    final String
    instrument currency or null
    final String
    Alias of the instrument this information relates to
    final boolean
    If true, this is a duplicate of an already existing order.
    final int
    position
    final double
    realized (closed) PnL
    final double
    unrealized (open) PnL
    final int
    number of shares bought/sold during the day
    final int
    number of working buy orders
    final int
    number of working sell orders
  • Constructor Summary

    Constructors
    Constructor
    Description
    StatusInfo(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

    Modifier and Type
    Method
    Description
     
     

    Methods inherited from class java.lang.Object

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

    • instrumentAlias

      public final 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 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(String instrumentAlias, double unrealizedPnl, double realizedPnl, String currency, int position, double averagePrice, int volume, int workingBuys, int workingSells)
    • StatusInfo

      public StatusInfo(String instrumentAlias, double unrealizedPnl, double realizedPnl, String currency, int position, double averagePrice, int volume, int workingBuys, int workingSells, boolean isDuplicate)
  • Method Details