DepthAggregationEvent
Package: velox.api.layer1.datastructure.events
Type: Class
Inheritance: java.lang.Object รขโ โ velox.api.layer1.datastructure.events.Event รขโ โ DepthAggregationEvent
All Implemented Interfaces: Serializable, Cloneable, CloneableSerializable, CustomGeneratedEvent
Descriptionโ
Aggregation of depth events in some time interval
See Also:
- Serialized Form
Fieldsโ
bidsMapโ
public Map<Integer, Integer> bidsMap
Map of bids, where key is price level (if multiplied by instrument pips, will give price), and value is size at this level
asksMapโ
public Map<Integer, Integer> asksMap
Map of asks, where key is price level (if multiplied by instrument pips, will give price), and value is size at this level
Fields inherited from class velox.api.layer1.datastructure.events.Event:
eventTypetime
Constructorsโ
DepthAggregationEventโ
public DepthAggregationEvent(long time)
DepthAggregationEventโ
public DepthAggregationEvent(long time, int bidsCapacity, int asksCapacity)
Methodsโ
getMapโ
public Map<Integer, Integer> getMap(boolean isBid)
toStringโ
public String toString()
Overrides: toString in class Object
bestBidโ
public int bestBid()
cloneโ
public Object clone()
Specified by:
clonein interfaceCloneableSerializableclonein classEvent
Methods inherited from class velox.api.layer1.datastructure.events.Event:
getTime()
Methods inherited from class java.lang.Object:
equals(Object)finalize()getClass()hashCode()notify()notifyAll()wait()wait(long)wait(long, int)