Class TradeAggregationEvent
java.lang.Object
velox.api.layer1.datastructure.events.Event
velox.api.layer1.datastructure.events.TradeAggregationEvent
- All Implemented Interfaces:
Serializable,Cloneable,CloneableSerializable,CustomGeneratedEvent
Aggregation of trade events in some time interval
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionMap 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 sizeMap 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 sizeFirst trade aggressor (in requested interval).doubleFirst trade price (in requested interval).First trade size (in requested interval).Last trade aggressor (in requested interval).doubleLast trade price (in requested interval).Last trade size (in requested interval). -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
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
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 lastPriceLast trade price (in requested interval).Double.NaNif none. -
lastSize
Last trade size (in requested interval). null if none. -
lastAggressorBid
Last trade aggressor (in requested interval). null if none. -
firstPrice
public double firstPriceFirst trade price (in requested interval).Double.NaNif none. -
firstSize
First trade size (in requested interval). null if none. -
firstAggressorBid
First trade aggressor (in requested interval). null if none.
-
-
Constructor Details
-
TradeAggregationEvent
public TradeAggregationEvent(long time)
-
-
Method Details
-
clone
- Specified by:
clonein interfaceCloneableSerializable- Specified by:
clonein classEvent
-
getBidTradeSize
public int getBidTradeSize() -
getAskTradeSize
public int getAskTradeSize() -
getTotalTradeSize
public int getTotalTradeSize() -
toString
-
equals
-
hashCode
public int hashCode()
-