public class TradeAggregationEvent extends Event
Modifier and Type | Field and Description |
---|---|
java.util.Map<java.lang.Double,java.util.Map<java.lang.Integer,java.lang.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 |
java.util.Map<java.lang.Double,java.util.Map<java.lang.Integer,java.lang.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 |
java.lang.Boolean |
lastAggressorBid
Last trade aggressor (in requested interval).
|
double |
lastPrice
Last trade price (in requested interval).
|
java.lang.Integer |
lastSize
Last trade size (in requested interval).
|
private static long |
serialVersionUID |
Constructor and Description |
---|
TradeAggregationEvent(long time) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
int |
getAskTradeSize() |
int |
getBidTradeSize() |
private int |
getMapSum(java.util.Map<java.lang.Double,java.util.Map<java.lang.Integer,java.lang.Integer>> map) |
int |
getTotalTradeSize() |
private static final long serialVersionUID
public java.util.Map<java.lang.Double,java.util.Map<java.lang.Integer,java.lang.Integer>> bidAggressorMap
public java.util.Map<java.lang.Double,java.util.Map<java.lang.Integer,java.lang.Integer>> askAggressorMap
public double lastPrice
Double.NaN
if none.public java.lang.Integer lastSize
public java.lang.Boolean lastAggressorBid
public java.lang.Object clone()
clone
in interface CloneableSerializable
clone
in class Event
private int getMapSum(java.util.Map<java.lang.Double,java.util.Map<java.lang.Integer,java.lang.Integer>> map)
public int getBidTradeSize()
public int getAskTradeSize()
public int getTotalTradeSize()