Layer1ApiDepthFreezer
source_file: Layer1ApiDepthFreezer.html package: velox.api.layer1.layers classes: Layer1ApiDepthFreezer methods: Layer1ApiDepthFreezer.DepthFreezeRequest, Layer1ApiDepthFreezer, onDepth, onUserMessage extends: **​
Layer1ApiDepthFreezer
Package: velox.api.layer1.layers
Type: Class
Inheritance​
Extends:
java.lang.Objectvelox.api.layer1.Layer1ApiBasicListenablevelox.api.layer1.layers.Layer1ApiUpstreamRelayvelox.api.layer1.layers.Layer1ApiRelay
All Implemented Interfaces:
java.lang.AutoCloseablevelox.api.layer1.Layer1ApiAdminListenablevelox.api.layer1.Layer1ApiAdminListenervelox.api.layer1.Layer1ApiAdminProvidervelox.api.layer1.Layer1ApiDataListenablevelox.api.layer1.Layer1ApiDataListenervelox.api.layer1.Layer1ApiDataProvidervelox.api.layer1.Layer1ApiInstrumentListenablevelox.api.layer1.Layer1ApiInstrumentListenervelox.api.layer1.Layer1ApiInstrumentProvidervelox.api.layer1.Layer1ApiListenervelox.api.layer1.Layer1ApiMboDataListenablevelox.api.layer1.Layer1ApiMboDataListenervelox.api.layer1.Layer1ApiProvidervelox.api.layer1.Layer1ApiTradingListenablevelox.api.layer1.Layer1ApiTradingListenervelox.api.layer1.Layer1ApiTradingProvidervelox.api.layer1.LayerApiListenablevelox.api.layer1.layers.Layer1ApiTimeSource
Nested Classes​
Layer1ApiDepthFreezer.DepthFreezeRequest​
Static nested class
Inherited from interface velox.api.layer1.layers.Layer1ApiTimeSource:
Layer1ApiTimeSource.Layer1TimeSourceShortcutAllowed
Fields​
Inherited from class velox.api.layer1.layers.Layer1ApiRelay:
provider
Inherited from class velox.api.layer1.layers.Layer1ApiUpstreamRelay:
closed
Inherited from class velox.api.layer1.Layer1ApiBasicListenable:
adminListenersdataListenersinstrumentListenersmboDataListenerstheOnlyAdminListenertheOnlyDataListenertheOnlyInstrumentListenertheOnlyMboDataListenertheOnlyTradingListenertradingListeners
Constructors​
Layer1ApiDepthFreezer​
public Layer1ApiDepthFreezer(Layer1ApiProvider provider)
Methods​
onDepth​
public void onDepth(String alias, boolean isBid, int price, int size)
Depth data update.
Specified by: onDepth in interface Layer1ApiDataListener
Overrides: onDepth in class Layer1ApiUpstreamRelay
Parameters:
alias- Instrument aliasisBid- True if it is for bids, false for asksprice- Price where size changedsize- New size
onUserMessage​
public void onUserMessage(Object data)
Send an upstream event. Allows incorporating arbitrary functionality into protocol.
Specified by: onUserMessage in interface Layer1ApiAdminListener
Overrides: onUserMessage in class Layer1ApiUpstreamRelay
Parameters:
data- Message content
Inherited Methods​
From class velox.api.layer1.layers.Layer1ApiRelay:
close()formatPrice(String, double)getCurrentTime()getSource()getSupportedFeatures()getTimeSource()login(velox.api.layer1.data.LoginData)sendOrder(velox.api.layer1.data.OrderSendParameters)sendUserMessage(Object)setProvider(velox.api.layer1.Layer1ApiProvider)subscribe(velox.api.layer1.data.SubscribeInfo)toString()unsubscribe(String)updateOrder(velox.api.layer1.data.OrderUpdateParameters)
From class velox.api.layer1.layers.Layer1ApiUpstreamRelay:
onBalance(velox.api.layer1.data.BalanceInfo)onConnectionLost(velox.api.layer1.data.DisconnectionReason, String)onConnectionRestored()onInstrumentAdded(String, velox.api.layer1.data.InstrumentInfo)onInstrumentAlreadySubscribed(String, String, String)onInstrumentNotFound(String, String, String)onInstrumentRemoved(String)onLoginFailed(velox.api.layer1.data.LoginFailedReason, String)onLoginSuccessful()onMarketMode(String, velox.api.layer1.data.MarketMode)onMboCancel(String, String)onMboReplace(String, String, int, int)onMboSend(String, String, boolean, int, int)onOrderExecuted(velox.api.layer1.data.ExecutionInfo)onOrderUpdated(velox.api.layer1.data.OrderInfoUpdate)onStatus(velox.api.layer1.data.StatusInfo)onSystemTextMessage(String, velox.api.layer1.data.SystemTextMessageType)onTrade(String, double, int, velox.api.layer1.data.TradeInfo)