Package velox.api.layer1
Interface Layer1ApiMboDataAdapter
- All Superinterfaces:
Layer1ApiMboDataListener
- All Known Subinterfaces:
Layer1ApiAdapter,OnlineValueCalculatorAdapter,StrategyUpdateGenerator
Provides default empty implementations
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonMboCancel(String alias, String orderId) An order left the book, whether canceled or fully executed.default voidonMboReplace(String alias, String orderId, int price, int size) An existing order changed its price and/or size.default voidA new order entered the book.
-
Method Details
-
onMboSend
Description copied from interface:Layer1ApiMboDataListenerA new order entered the book.- Specified by:
onMboSendin interfaceLayer1ApiMboDataListener- Parameters:
alias- instrument aliasorderId- id of the order, unique within the instrumentisBid- true for a bid, false for an askprice- price in tickssize- order size
-
onMboReplace
Description copied from interface:Layer1ApiMboDataListenerAn existing order changed its price and/or size. The side never changes. Bookmap keeps the order's queue position only when the price is unchanged and the size decreased. Any other change moves the order to the back of the queue at the new price.- Specified by:
onMboReplacein interfaceLayer1ApiMboDataListener- Parameters:
alias- instrument aliasorderId- id of an order previously reported byLayer1ApiMboDataListener.onMboSend(String, String, boolean, int, int)price- new price in ticks (may equal the old one)size- new size (may equal the old one)
-
onMboCancel
Description copied from interface:Layer1ApiMboDataListenerAn order left the book, whether canceled or fully executed. No further events for this id will follow unless it is re-sent.- Specified by:
onMboCancelin interfaceLayer1ApiMboDataListener- Parameters:
alias- instrument aliasorderId- id of the removed order
-