SimplifiedL1ApiLoader
Package: velox.api.layer1.simplified
Type: Class
Type Parameters: <T extends CustomModule>
Inheritance​
Extends:
java.lang.Objectvelox.api.layer1.Layer1ApiBasicListenablevelox.api.layer1.layers.Layer1ApiUpstreamRelayvelox.api.layer1.layers.Layer1ApiRelayvelox.api.layer1.layers.Layer1ApiInjectorRelay
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.Layer1ApiFinishablevelox.api.layer1.Layer1ApiInstrumentListenablevelox.api.layer1.Layer1ApiInstrumentListenervelox.api.layer1.Layer1ApiInstrumentProvidervelox.api.layer1.Layer1ApiInstrumentSpecificEnabledStateProvidervelox.api.layer1.Layer1ApiListenervelox.api.layer1.Layer1ApiMboDataListenablevelox.api.layer1.Layer1ApiMboDataListenervelox.api.layer1.Layer1ApiProvidervelox.api.layer1.Layer1ApiTradingListenablevelox.api.layer1.Layer1ApiTradingListenervelox.api.layer1.Layer1ApiTradingProvidervelox.api.layer1.Layer1CustomPanelsGettervelox.api.layer1.LayerApiListenablevelox.api.layer1.layers.Layer1ApiTimeSourcevelox.api.layer1.layers.strategies.interfaces.Layer1IndicatorColorInterfacevelox.api.layer1.layers.strategies.interfaces.Layer1PriceAxisRangeCalculatablevelox.api.layer1.layers.strategies.interfaces.Layer1StrategyAddInterfacevelox.api.layer1.layers.strategies.interfaces.Layer1WidgetRangeInterfacevelox.api.layer1.localization.Layer1LocalizationInterfacevelox.api.layer1.settings.Layer1ConfigSettingsInterface
Nested Classes​
SimplifiedL1ApiLoader.Mode​
static enum SimplifiedL1ApiLoader.Mode
Fields​
CUSTOM_TRADE_EVENTS_AGGREGATOR​
public static final velox.api.layer1.layers.strategies.interfaces.CustomEventAggregatble CUSTOM_TRADE_EVENTS_AGGREGATOR
initialUserSettings​
public Map<String, Map<String, UserSettings.ParameterField>> initialUserSettings
Constructors​
SimplifiedL1ApiLoader​
public SimplifiedL1ApiLoader(velox.api.layer1.Layer1ApiProvider provider, Class<T> clazz)
Methods​
acceptLocalizedBundleProvider​
void acceptLocalizedBundleProvider(velox.api.layer1.localization.LocalizedBundleProvider localizedBundleProvider)
Specified by: acceptLocalizedBundleProvider in interface velox.api.layer1.localization.Layer1LocalizationInterface
onStrategyAdd​
void onStrategyAdd()
Specified by: onStrategyAdd in interface velox.api.layer1.layers.strategies.interfaces.Layer1StrategyAddInterface
finish​
void finish()
Specified by: finish in interface velox.api.layer1.Layer1ApiFinishable
close​
void close()
Specified by:
closein interfacejava.lang.AutoCloseableclosein interfacevelox.api.layer1.Layer1ApiAdminProvider
Overrides: close in class velox.api.layer1.layers.Layer1ApiInjectorRelay
setColor​
void setColor(String alias, String name, Color color)
Specified by: setColor in interface velox.api.layer1.layers.strategies.interfaces.Layer1IndicatorColorInterface
getColor​
Color getColor(String alias, String name)
Specified by: getColor in interface velox.api.layer1.layers.strategies.interfaces.Layer1IndicatorColorInterface
addColorChangeListener​
void addColorChangeListener(velox.colors.ColorsChangedListener listener)
Specified by: addColorChangeListener in interface velox.api.layer1.layers.strategies.interfaces.Layer1IndicatorColorInterface
acceptSettingsInterface​
void acceptSettingsInterface(velox.api.layer1.messages.indicators.SettingsAccess settingsAccess)
Specified by: acceptSettingsInterface in interface velox.api.layer1.settings.Layer1ConfigSettingsInterface
getCustomGuiFor​
velox.gui.StrategyPanel[] getCustomGuiFor(String alias, String indicatorName)
Specified by: getCustomGuiFor in interface velox.api.layer1.Layer1CustomPanelsGetter
settingsChanged​
void settingsChanged(String alias, UserSettings settings)
onStrategyCheckboxEnabled​
void onStrategyCheckboxEnabled(String alias, boolean isEnabled)
Specified by: onStrategyCheckboxEnabled in interface velox.api.layer1.Layer1ApiInstrumentSpecificEnabledStateProvider
isStrategyEnabled​
boolean isStrategyEnabled(String alias)
Specified by: isStrategyEnabled in interface velox.api.layer1.Layer1ApiInstrumentSpecificEnabledStateProvider
setStrategyEnabledRecheckCallback​
void setStrategyEnabledRecheckCallback(String alias, Runnable recheckCallback)
Specified by: setStrategyEnabledRecheckCallback in interface velox.api.layer1.Layer1ApiInstrumentSpecificEnabledStateProvider
onUserMessage​
void onUserMessage(Object data)
Specified by: onUserMessage in interface velox.api.layer1.Layer1ApiAdminListener
Overrides: onUserMessage in class velox.api.layer1.layers.Layer1ApiInjectorRelay
onInstrumentAdded​
void onInstrumentAdded(String alias, velox.api.layer1.data.InstrumentInfo instrumentInfo)
Specified by: onInstrumentAdded in interface velox.api.layer1.Layer1ApiInstrumentListener
Overrides: onInstrumentAdded in class velox.api.layer1.layers.Layer1ApiInjectorRelay
onInstrumentRemoved​
void onInstrumentRemoved(String alias)
Specified by: onInstrumentRemoved in interface velox.api.layer1.Layer1ApiInstrumentListener
Overrides: onInstrumentRemoved in class velox.api.layer1.layers.Layer1ApiInjectorRelay
onDepth​
void onDepth(String alias, boolean isBid, int price, int size)
Specified by: onDepth in interface velox.api.layer1.Layer1ApiDataListener
Overrides: onDepth in class velox.api.layer1.layers.Layer1ApiInjectorRelay
onMboSend​
void onMboSend(String alias, String orderId, boolean isBid, int price, int size)
Specified by: onMboSend in interface velox.api.layer1.Layer1ApiMboDataListener
Overrides: onMboSend in class velox.api.layer1.layers.Layer1ApiInjectorRelay
onMboReplace​
void onMboReplace(String alias, String orderId, int price, int size)
Specified by: onMboReplace in interface velox.api.layer1.Layer1ApiMboDataListener
Overrides: onMboReplace in class velox.api.layer1.layers.Layer1ApiInjectorRelay
onMboCancel​
void onMboCancel(String alias, String orderId)
Specified by: onMboCancel in interface velox.api.layer1.Layer1ApiMboDataListener
Overrides: onMboCancel in class velox.api.layer1.layers.Layer1ApiInjectorRelay
onTrade​
void onTrade(String alias, double price, int size, velox.api.layer1.data.TradeInfo tradeInfo)
Specified by: onTrade in interface velox.api.layer1.Layer1ApiDataListener
Overrides: onTrade in class velox.api.layer1.layers.Layer1ApiInjectorRelay
onOrderUpdated​
void onOrderUpdated(velox.api.layer1.data.OrderInfoUpdate orderInfoUpdate)
Specified by: onOrderUpdated in interface velox.api.layer1.Layer1ApiTradingListener
Overrides: onOrderUpdated in class velox.api.layer1.layers.Layer1ApiInjectorRelay
onOrderExecuted​
void onOrderExecuted(velox.api.layer1.data.ExecutionInfo executionInfo)
Specified by: onOrderExecuted in interface velox.api.layer1.Layer1ApiTradingListener
Overrides: onOrderExecuted in class velox.api.layer1.layers.Layer1ApiInjectorRelay
onStatus​
void onStatus(velox.api.layer1.data.StatusInfo statusInfo)
Specified by: onStatus in interface velox.api.layer1.Layer1ApiTradingListener
Overrides: onStatus in class velox.api.layer1.layers.Layer1ApiInjectorRelay
onBalance​
void onBalance(velox.api.layer1.data.BalanceInfo balanceInfo)
Specified by: onBalance in interface velox.api.layer1.Layer1ApiTradingListener
Overrides: onBalance in class velox.api.layer1.layers.Layer1ApiInjectorRelay
getPriceRanges​
Map<String, velox.api.layer1.layers.strategies.interfaces.Layer1PriceAxisRangeCalculatable.ResultPriceAxisInfo> getPriceRanges(String alias, double linesCount, Map<String, velox.api.layer1.layers.strategies.interfaces.Layer1PriceAxisRangeCalculatable.InputPriceAxisInfo> inputInfo)
Specified by: getPriceRanges in interface velox.api.layer1.layers.strategies.interfaces.Layer1PriceAxisRangeCalculatable
createUserSettingsFromAnnotations​
UserSettings createUserSettingsFromAnnotations(Object instance, Class<? extends Annotation> clazz, String alias, boolean settingsExist)
restartInstrument​
void restartInstrument(String alias)
getUserSettings​
UserSettings getUserSettings(String alias)
setWidgetConsumer​
void setWidgetConsumer(String alias, String fullName, velox.api.layer1.layers.strategies.interfaces.WidgetRangeConsumer consumer)
Specified by: setWidgetConsumer in interface velox.api.layer1.layers.strategies.interfaces.Layer1WidgetRangeInterface
sendUserMessageAsync​
void sendUserMessageAsync(Object data)
sendUserMessage​
Object sendUserMessage(Object data)
Specified by: sendUserMessage in interface velox.api.layer1.Layer1ApiAdminProvider
Overrides: sendUserMessage in class velox.api.layer1.layers.Layer1ApiRelay
getCurrentTime​
long getCurrentTime()
Specified by: getCurrentTime in interface velox.api.layer1.Layer1ApiAdminProvider
Overrides: getCurrentTime in class velox.api.layer1.layers.Layer1ApiRelay