DeactivatableStrategyUpdateGeneratorWithFilter
Package: velox.api.layer1.simplified
Type: Class
Inheritance: java.lang.Object รขโ โ DeactivatableStrategyUpdateGeneratorWithFilter
All Implemented Interfaces: velox.api.layer1.Layer1ApiDataAdapter, velox.api.layer1.Layer1ApiDataListener, velox.api.layer1.Layer1ApiInstrumentAdapter, velox.api.layer1.Layer1ApiInstrumentListener, velox.api.layer1.Layer1ApiMboDataAdapter, velox.api.layer1.Layer1ApiMboDataListener, velox.api.layer1.Layer1ApiTradingAdapter, velox.api.layer1.Layer1ApiTradingListener, velox.api.layer1.messages.indicators.GeneratedUpdateConsumer, velox.api.layer1.messages.indicators.StrategyUpdateGenerator, velox.api.layer1.messages.indicators.StrategyUpdateGeneratorFilter, velox.api.layer1.messages.indicators.StrategyUpdateGeneratorSkipper
Nested Classesโ
Inherited from velox.api.layer1.messages.indicators.StrategyUpdateGeneratorFilter:
velox.api.layer1.messages.indicators.StrategyUpdateGeneratorFilter.StrategyUpdateGeneratorEventType
Constructorsโ
DeactivatableStrategyUpdateGeneratorWithFilterโ
public DeactivatableStrategyUpdateGeneratorWithFilter(SimplifiedL1ApiLoader simplifiedL1ApiLoader, String targetAlias, InstanceWrapper listener)
Methodsโ
setGeneratedEventsConsumerโ
public void setGeneratedEventsConsumer(Consumer<velox.api.layer1.layers.strategies.interfaces.CustomGeneratedEventAliased> consumer)
Specified by: setGeneratedEventsConsumer in interface velox.api.layer1.messages.indicators.GeneratedUpdateConsumer
getGeneratedEventsConsumerโ
public Consumer<velox.api.layer1.layers.strategies.interfaces.CustomGeneratedEventAliased> getGeneratedEventsConsumer()
Specified by: getGeneratedEventsConsumer in interface velox.api.layer1.messages.indicators.GeneratedUpdateConsumer
onStatusโ
public void onStatus(velox.api.layer1.data.StatusInfo statusInfo)
Specified by: onStatus in interface velox.api.layer1.Layer1ApiTradingAdapter
Specified by: onStatus in interface velox.api.layer1.Layer1ApiTradingListener
onOrderUpdatedโ
public void onOrderUpdated(velox.api.layer1.data.OrderInfoUpdate orderInfoUpdate)
Specified by: onOrderUpdated in interface velox.api.layer1.Layer1ApiTradingAdapter
Specified by: onOrderUpdated in interface velox.api.layer1.Layer1ApiTradingListener
onOrderExecutedโ
public void onOrderExecuted(velox.api.layer1.data.ExecutionInfo executionInfo)
Specified by: onOrderExecuted in interface velox.api.layer1.Layer1ApiTradingAdapter
Specified by: onOrderExecuted in interface velox.api.layer1.Layer1ApiTradingListener
onBalanceโ
public void onBalance(velox.api.layer1.data.BalanceInfo balanceInfo)
Specified by: onBalance in interface velox.api.layer1.Layer1ApiTradingAdapter
Specified by: onBalance in interface velox.api.layer1.Layer1ApiTradingListener
onTradeโ
public void onTrade(String alias, double price, int size, velox.api.layer1.data.TradeInfo tradeInfo)
Specified by: onTrade in interface velox.api.layer1.Layer1ApiDataAdapter
Specified by: onTrade in interface velox.api.layer1.Layer1ApiDataListener
onMarketModeโ
public void onMarketMode(String alias, velox.api.layer1.data.MarketMode marketMode)
Specified by: onMarketMode in interface velox.api.layer1.Layer1ApiDataAdapter
Specified by: onMarketMode in interface velox.api.layer1.Layer1ApiDataListener
onDepthโ
public void onDepth(String alias, boolean isBid, int price, int size)
Specified by: onDepth in interface velox.api.layer1.Layer1ApiDataAdapter
Specified by: onDepth in interface velox.api.layer1.Layer1ApiDataListener
onMboSendโ
public void onMboSend(String alias, String orderId, boolean isBid, int price, int size)
Specified by: onMboSend in interface velox.api.layer1.Layer1ApiMboDataAdapter
Specified by: onMboSend in interface velox.api.layer1.Layer1ApiMboDataListener
onMboReplaceโ
public void onMboReplace(String alias, String orderId, int price, int size)
Specified by: onMboReplace in interface velox.api.layer1.Layer1ApiMboDataAdapter
Specified by: onMboReplace in interface velox.api.layer1.Layer1ApiMboDataListener
onMboCancelโ
public void onMboCancel(String alias, String orderId)
Specified by: onMboCancel in interface velox.api.layer1.Layer1ApiMboDataAdapter
Specified by: onMboCancel in interface velox.api.layer1.Layer1ApiMboDataListener
onInstrumentAddedโ
public void onInstrumentAdded(String alias, velox.api.layer1.data.InstrumentInfo instrumentInfo)
Specified by: onInstrumentAdded in interface velox.api.layer1.Layer1ApiInstrumentAdapter
Specified by: onInstrumentAdded in interface velox.api.layer1.Layer1ApiInstrumentListener
onInstrumentRemovedโ
public void onInstrumentRemoved(String alias)
Specified by: onInstrumentRemoved in interface velox.api.layer1.Layer1ApiInstrumentAdapter
Specified by: onInstrumentRemoved in interface velox.api.layer1.Layer1ApiInstrumentListener
onInstrumentNotFoundโ
public void onInstrumentNotFound(String symbol, String exchange, String type)
Specified by: onInstrumentNotFound in interface velox.api.layer1.Layer1ApiInstrumentAdapter
Specified by: onInstrumentNotFound in interface velox.api.layer1.Layer1ApiInstrumentListener
onInstrumentAlreadySubscribedโ
public void onInstrumentAlreadySubscribed(String symbol, String exchange, String type)
Specified by: onInstrumentAlreadySubscribed in interface velox.api.layer1.Layer1ApiInstrumentAdapter
Specified by: onInstrumentAlreadySubscribed in interface velox.api.layer1.Layer1ApiInstrumentListener
onUserMessageโ
public void onUserMessage(Object data)
Specified by: onUserMessage in interface velox.api.layer1.messages.indicators.StrategyUpdateGenerator
setTimeโ
public void setTime(long time)
Specified by: setTime in interface velox.api.layer1.messages.indicators.StrategyUpdateGenerator
getGeneratorUpdateTypesโ
public Set<velox.api.layer1.messages.indicators.StrategyUpdateGeneratorFilter.StrategyUpdateGeneratorEventType> getGeneratorUpdateTypes()
Specified by: getGeneratorUpdateTypes in interface velox.api.layer1.messages.indicators.StrategyUpdateGeneratorFilter
getGeneratorAliasesโ
public Set<String> getGeneratorAliases()
Specified by: getGeneratorAliases in interface velox.api.layer1.messages.indicators.StrategyUpdateGeneratorFilter
deactivateโ
public void deactivate()
isActiveโ
public boolean isActive()
skipToRealtimeRequestedโ
public boolean skipToRealtimeRequested()
Specified by: skipToRealtimeRequested in interface velox.api.layer1.messages.indicators.StrategyUpdateGeneratorSkipper
Inherited Methodsโ
Methods inherited from class java.lang.Object:
clone()equals(Object)finalize()getClass()hashCode()notify()notifyAll()toString()wait()wait(long)wait(long, int)