Package deltix.qsrv.hf.connectors.util
Class L2Snapshot
- java.lang.Object
-
- deltix.qsrv.hf.connectors.util.L2Snapshot
-
- All Implemented Interfaces:
IFullSnapshot
,IUpdateSnapshot
public class L2Snapshot extends java.lang.Object implements IUpdateSnapshot
L2-order book implementation, which providesIUpdateSnapshot
andIFullSnapshot
interfaces.
-
-
Constructor Summary
Constructors Constructor Description L2Snapshot(int maxDepth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(deltix.timebase.api.messages.L2SnapshotMessage snapshot)
void
apply(deltix.timebase.api.messages.Level2Message increment)
void
clear()
void
copy(L2Snapshot src)
void
dump(java.lang.StringBuilder sb)
void
fillSnapshotPrices(deltix.timebase.api.messages.L2SnapshotMessage snapshot)
int
getAskOffset()
double
getAskPrice(int index)
int
getAskSnapshotSize()
int
getAskUpdateSize()
double
getAskVolume(int index)
int
getBidOffset()
double
getBidPrice(int index)
int
getBidSnapshotSize()
int
getBidUpdateSize()
double
getBidVolume(int index)
-
-
-
Method Detail
-
copy
public final void copy(L2Snapshot src)
-
getAskPrice
public final double getAskPrice(int index)
- Specified by:
getAskPrice
in interfaceIFullSnapshot
-
getBidPrice
public final double getBidPrice(int index)
- Specified by:
getBidPrice
in interfaceIFullSnapshot
-
getAskVolume
public final double getAskVolume(int index)
- Specified by:
getAskVolume
in interfaceIFullSnapshot
-
getBidVolume
public final double getBidVolume(int index)
- Specified by:
getBidVolume
in interfaceIFullSnapshot
-
getAskSnapshotSize
public final int getAskSnapshotSize()
- Specified by:
getAskSnapshotSize
in interfaceIFullSnapshot
-
getBidSnapshotSize
public final int getBidSnapshotSize()
- Specified by:
getBidSnapshotSize
in interfaceIFullSnapshot
-
getAskUpdateSize
public final int getAskUpdateSize()
- Specified by:
getAskUpdateSize
in interfaceIUpdateSnapshot
-
getAskOffset
public final int getAskOffset()
- Specified by:
getAskOffset
in interfaceIUpdateSnapshot
-
getBidUpdateSize
public final int getBidUpdateSize()
- Specified by:
getBidUpdateSize
in interfaceIUpdateSnapshot
-
getBidOffset
public final int getBidOffset()
- Specified by:
getBidOffset
in interfaceIUpdateSnapshot
-
apply
public final void apply(deltix.timebase.api.messages.Level2Message increment)
-
apply
public final void apply(deltix.timebase.api.messages.L2SnapshotMessage snapshot)
-
fillSnapshotPrices
public final void fillSnapshotPrices(deltix.timebase.api.messages.L2SnapshotMessage snapshot)
-
clear
public final void clear()
-
dump
public final void dump(java.lang.StringBuilder sb)
-
-