Package velox.api.layer1.simplified
Interface BarDataListener
- All Superinterfaces:
IntervalListener
- All Known Subinterfaces:
AllDataModule,BarDataAdapter
public interface BarDataListener extends IntervalListener
Get bars and order book snapshot with fixed interval
-
Method Summary
Modifier and Type Method Description voidonBar(velox.api.layer1.layers.utils.OrderBook orderBook, Bar bar)Called when bar is ready.default voidonInterval()BarDataListenerprovides default empty implementation forIntervalListener.onInterval()since you getonBar(OrderBook, Bar)called at the same time.
-
Method Details
-
onBar
Called when bar is ready. Bar width is specified viaIntervalListener.getInterval() -
onInterval
default void onInterval()BarDataListenerprovides default empty implementation forIntervalListener.onInterval()since you getonBar(OrderBook, Bar)called at the same time. But you still can override and use this method.- Specified by:
onIntervalin interfaceIntervalListener
-