Class TradeAggregationEvent
java.lang.Object
velox.api.layer1.datastructure.events.Event
velox.api.layer1.datastructure.events.TradeAggregationEvent
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,CloneableSerializable,CustomGeneratedEvent
public class TradeAggregationEvent extends Event
Aggregation of trade events in some time interval
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description java.util.Map<java.lang.Double,java.util.Map<java.lang.Integer,java.lang.Integer>>askAggressorMapMap 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 sizejava.util.Map<java.lang.Double,java.util.Map<java.lang.Integer,java.lang.Integer>>bidAggressorMapMap 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 sizejava.lang.BooleanlastAggressorBidLast trade aggressor (in requested interval).doublelastPriceLast trade price (in requested interval).java.lang.IntegerlastSizeLast trade size (in requested interval). -
Constructor Summary
Constructors Constructor Description TradeAggregationEvent(long time) -
Method Summary
Modifier and Type Method Description java.lang.Objectclone()intgetAskTradeSize()intgetBidTradeSize()intgetTotalTradeSize()
-
Field Details
-
bidAggressorMap
public java.util.Map<java.lang.Double,java.util.Map<java.lang.Integer,java.lang.Integer>> bidAggressorMapMap 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 java.util.Map<java.lang.Double,java.util.Map<java.lang.Integer,java.lang.Integer>> askAggressorMapMap 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 lastPriceLast trade price (in requested interval).Double.NaNif none. -
lastSize
public java.lang.Integer lastSizeLast trade size (in requested interval). null if none. -
lastAggressorBid
public java.lang.Boolean lastAggressorBidLast trade aggressor (in requested interval). null if none.
-
-
Constructor Details
-
TradeAggregationEvent
public TradeAggregationEvent(long time)
-
-
Method Details
-
clone
public java.lang.Object clone()- Specified by:
clonein interfaceCloneableSerializable- Specified by:
clonein classEvent
-
getBidTradeSize
public int getBidTradeSize() -
getAskTradeSize
public int getAskTradeSize() -
getTotalTradeSize
public int getTotalTradeSize()
-