Skip to main content

TradeAggregationEvent

Package: velox.api.layer1.datastructure.events

Type: Class

Inheritance: java.lang.Object รขโ€ โ€™ velox.api.layer1.datastructure.events.Event รขโ€ โ€™ TradeAggregationEvent

All Implemented Interfaces: Serializable, Cloneable, CloneableSerializable, CustomGeneratedEvent

Descriptionโ€‹

Aggregation of trade events in some time interval

See Also:

  • Serialized Form

Fieldsโ€‹

bidAggressorMapโ€‹

public Map<Double, Map<Integer, Integer>> bidAggressorMap

Map of trades, where bid is aggressor, where key is price level (if multiplied by instrument pips, will give price), and value is map, describing trades at this level, in following format:
Key: size of trade, value: number of trades of this size

askAggressorMapโ€‹

public Map<Double, Map<Integer, Integer>> askAggressorMap

Map of trades, where ask is aggressor, where key is price level (if multiplied by instrument pips, will give price), and value is map, describing trades at this level, in following format:
Key: size of trade, value: number of trades of this size

lastPriceโ€‹

public double lastPrice

Last trade price (in requested interval). Double.NaN if none.

lastSizeโ€‹

public Integer lastSize

Last trade size (in requested interval). null if none.

lastAggressorBidโ€‹

public Boolean lastAggressorBid

Last trade aggressor (in requested interval). null if none.

Fields inherited from class velox.api.layer1.datastructure.events.Event:

  • eventType
  • time

Constructorsโ€‹

TradeAggregationEventโ€‹

public TradeAggregationEvent(long time)

Methodsโ€‹

cloneโ€‹

public Object clone()

Specified by:

  • clone in interface CloneableSerializable
  • clone in class Event

getBidTradeSizeโ€‹

public int getBidTradeSize()

getAskTradeSizeโ€‹

public int getAskTradeSize()

getTotalTradeSizeโ€‹

public int getTotalTradeSize()

toStringโ€‹

public String toString()

Overrides: toString in class Object

Methods inherited from class velox.api.layer1.datastructure.events.Event:

  • getTime

Methods inherited from class java.lang.Object:

  • equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait