Package velox.api.layer1.simplified
Interface BarDataListener
- All Superinterfaces:
IntervalListener
- All Known Subinterfaces:
AllDataModule,BarDataAdapter
Get bars and order book snapshot with fixed interval
-
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when bar is ready.default voidBarDataListenerprovides default empty implementation forIntervalListener.onInterval()since you getonBar(OrderBook, Bar)called at the same time.Methods inherited from interface velox.api.layer1.simplified.IntervalListener
getInterval
-
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
-