Class TradeInfo

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

@DefaultQualifier(org.checkerframework.checker.nullness.qual.NonNull.class) public class TradeInfo extends Object implements Serializable
Information about the trade
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final @Nullable String
    aggressor for this trade, can be null if not know/not applicable
    final boolean
    true if bid was the aggressor, false if ask was the aggressor
    final boolean
    true if this trade ends order execution chain
    final boolean
    true if this trade starts new order execution chain
    final boolean
    true if the trade is OTC
    final @Nullable String
    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, @Nullable String aggressorOrderId, @Nullable String passiveOrderId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
     

    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 @Nullable String aggressorOrderId
      aggressor for this trade, can be null if not know/not applicable
    • passiveOrderId

      public final @Nullable 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, @Nullable String aggressorOrderId, @Nullable String passiveOrderId)
  • Method Details