Class TradeInfo

java.lang.Object
velox.api.layer1.data.TradeInfo
All Implemented Interfaces:
java.io.Serializable

public class TradeInfo
extends java.lang.Object
implements java.io.Serializable
Information about the trade
See Also:
Serialized Form
  • Field Summary

    Fields 
    Modifier and Type Field Description
    java.lang.String aggressorOrderId
    aggressor for this trade, can be null if not know/not applicable
    boolean isBidAggressor
    true if bid was the aggressor, false if ask was the aggressor
    boolean isExecutionEnd
    true if this trade ends order execution chain
    boolean isExecutionStart
    true if this trade starts new order execution chain
    boolean isOtc
    true if the trade is OTC
    java.lang.String passiveOrderId
    order (partially) consumed by aggressor, can be null if not known/not applicable
  • Constructor Summary

    Constructors 
    Constructor Description
    TradeInfo​(boolean isOtc, boolean isBidAggressor)  
    TradeInfo​(boolean isOtc, boolean isBidAggressor, boolean isExecutionStart, boolean isExecutionEnd)  
    TradeInfo​(boolean isOtc, boolean isBidAggressor, boolean isExecutionStart, boolean isExecutionEnd, java.lang.String aggressorOrderId, java.lang.String passiveOrderId)  
  • Method Summary

    Modifier and Type Method Description
    boolean compare​(TradeInfo other)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

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

    • isOtc

      public final boolean isOtc
      true if the trade is OTC
    • isBidAggressor

      public final boolean isBidAggressor
      true if bid was the aggressor, false if ask was the aggressor
    • isExecutionStart

      public final boolean isExecutionStart
      true if this trade starts new order execution chain
    • isExecutionEnd

      public final boolean isExecutionEnd
      true if this trade ends order execution chain
    • aggressorOrderId

      public final java.lang.String aggressorOrderId
      aggressor for this trade, can be null if not know/not applicable
    • passiveOrderId

      public final java.lang.String passiveOrderId
      order (partially) consumed by aggressor, can be null if not known/not applicable
  • Constructor Details

    • TradeInfo

      public TradeInfo​(boolean isOtc, boolean isBidAggressor)
    • TradeInfo

      public TradeInfo​(boolean isOtc, boolean isBidAggressor, boolean isExecutionStart, boolean isExecutionEnd)
    • TradeInfo

      public TradeInfo​(boolean isOtc, boolean isBidAggressor, boolean isExecutionStart, boolean isExecutionEnd, java.lang.String aggressorOrderId, java.lang.String passiveOrderId)
  • Method Details

    • compare

      public boolean compare​(TradeInfo other)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object