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 |
double |
lastPrice
Last trade price (in requested interval).
|
java.lang.Integer |
lastSize
Last trade size (in requested interval).
|
| Constructor and Description |
|---|
TradeAggregationEvent(long time) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
int |
getAskTradeSize() |
int |
getBidTradeSize() |
int |
getTotalTradeSize() |
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.Object clone()
clone in interface CloneableSerializableclone in class Eventpublic int getBidTradeSize()
public int getAskTradeSize()
public int getTotalTradeSize()