Package velox.api.layer1
Interface Layer1ApiDataAdapter
- All Superinterfaces:
Layer1ApiDataListener
- All Known Subinterfaces:
Layer1ApiAdapter,OnlineValueCalculatorAdapter,StrategyUpdateGenerator
Provides default empty implementations.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidDepth data update.default voidonMarketMode(String alias, MarketMode marketMode) Market mode update.default voidTrade
-
Method Details
-
onTrade
Description copied from interface:Layer1ApiDataListenerTrade- Specified by:
onTradein interfaceLayer1ApiDataListener- Parameters:
alias- instrument aliasprice- price in the same units as in depth update (e.g. if pips=25 then price=1000 means 25000).size- trade sizetradeInfo- additional information about the trade, e.g. aggressor side and whether it is an OTC trade
-
onDepth
Description copied from interface:Layer1ApiDataListenerDepth data update. This is an absolute update, not a delta: the size becomes the total size at that price level. A size of 0 removes the level from the book. Bookmap sends the full initial book as a sequence of these calls afterLayer1ApiInstrumentListener.onInstrumentAdded(java.lang.String, velox.api.layer1.data.InstrumentInfo).- Specified by:
onDepthin interfaceLayer1ApiDataListener- Parameters:
alias- instrument aliasisBid- true if it is for bids, false for asksprice- price where size changed, in tickssize- new total size at the level, 0 to remove the level
-
onMarketMode
Description copied from interface:Layer1ApiDataListenerMarket mode update. Only sent when the mode changes, so most instruments receive it rarely or never.- Specified by:
onMarketModein interfaceLayer1ApiDataListener- Parameters:
alias- instrument aliasmarketMode- new mode
-