public interface OnlineValueCalculatorAdapter extends Layer1ApiMboDataAdapter, Layer1ApiDataAdapter, Layer1ApiTradingAdapter
Modifier and Type | Method and Description |
---|---|
default void |
onIntervalsNumber(int intervalsNumber)
Guaranteed to be called once after adapter is created and
onIntervalWidth(long) method is called,
before any other methods are called |
default void |
onIntervalWidth(long intervalWidth)
Guaranteed to be called once after adapter is created and before any other methods are called
|
default void |
onLeftTimeChanged(long leftTime)
Guaranteed to be called once after adapter is created and
onIntervalWidth(long) and onIntervalsNumber(int) methods are called,
before any other methods are calledSubsequent calls indicate that chart's left pixel was changed |
default void |
onRealTimeDataStart()
Any data that came before this method call was historical data from last pixel
There is no need to treat this data differently, but if this data triggers any invalidates, in some case this could result in continuous invalidations (if time is paused in replay and chart range is not changing, data received will always be the same |
default void |
onUserMessage(java.lang.Object data) |
onMboCancel, onMboReplace, onMboSend
onDepth, onMarketMode, onTrade
onBalance, onOrderExecuted, onOrderUpdated, onStatus
default void onUserMessage(java.lang.Object data)
default void onIntervalWidth(long intervalWidth)
intervalWidth
- nanoseconds in 1 pixel of chartdefault void onLeftTimeChanged(long leftTime)
onIntervalWidth(long)
and onIntervalsNumber(int)
methods are called,
before any other methods are calledleftTime
- time of beginning of left-most chart pixeldefault void onIntervalsNumber(int intervalsNumber)
onIntervalWidth(long)
method is called,
before any other methods are calledintervalsNumber
- number of pixel on screen for lifetime of this adapter (if that number changes, adapter will be recreated)default void onRealTimeDataStart()