Skip to main content

TradeInfo

Package: velox.api.layer1.data

Type: Class

Inheritance: java.lang.Object → velox.api.layer1.data.TradeInfo

All Implemented Interfaces: java.io.Serializable

Description​

Information about the trade

See Also:

  • Serialized Form

Fields​

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 known/not applicable

passiveOrderId​

public final @Nullable String passiveOrderId

Order (partially) consumed by aggressor, can be null if not known/not applicable

Constructors​

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)

Methods​

compare​

public boolean compare(TradeInfo other)

toString​

public String toString()

Overrides: toString in class Object