Package velox.api.layer1.simplified
Class SimplifiedL1ApiLoader<T extends CustomModule>
java.lang.Object
velox.api.layer1.Layer1ApiBasicListenable
velox.api.layer1.layers.Layer1ApiUpstreamRelay
velox.api.layer1.layers.Layer1ApiRelay
velox.api.layer1.layers.Layer1ApiInjectorRelay
velox.api.layer1.simplified.SimplifiedL1ApiLoader<T>
- All Implemented Interfaces:
AutoCloseable,velox.api.layer1.Layer1ApiAdminListenable,velox.api.layer1.Layer1ApiAdminListener,velox.api.layer1.Layer1ApiAdminProvider,velox.api.layer1.Layer1ApiDataListenable,velox.api.layer1.Layer1ApiDataListener,velox.api.layer1.Layer1ApiDataProvider,velox.api.layer1.Layer1ApiFinishable,velox.api.layer1.Layer1ApiInstrumentListenable,velox.api.layer1.Layer1ApiInstrumentListener,velox.api.layer1.Layer1ApiInstrumentProvider,velox.api.layer1.Layer1ApiInstrumentSpecificEnabledStateProvider,velox.api.layer1.Layer1ApiListener,velox.api.layer1.Layer1ApiMboDataListenable,velox.api.layer1.Layer1ApiMboDataListener,velox.api.layer1.Layer1ApiProvider,velox.api.layer1.Layer1ApiTradingListenable,velox.api.layer1.Layer1ApiTradingListener,velox.api.layer1.Layer1ApiTradingProvider,velox.api.layer1.Layer1CustomPanelsGetter,velox.api.layer1.LayerApiListenable,velox.api.layer1.layers.Layer1ApiTimeSource,velox.api.layer1.layers.strategies.interfaces.Layer1IndicatorColorInterface,velox.api.layer1.layers.strategies.interfaces.Layer1PriceAxisRangeCalculatable,velox.api.layer1.layers.strategies.interfaces.Layer1StrategyAddInterface,velox.api.layer1.layers.strategies.interfaces.Layer1WidgetRangeInterface,velox.api.layer1.localization.Layer1LocalizationInterface,velox.api.layer1.settings.Layer1ConfigSettingsInterface
public class SimplifiedL1ApiLoader<T extends CustomModule>
extends velox.api.layer1.layers.Layer1ApiInjectorRelay
implements velox.api.layer1.Layer1ApiFinishable, velox.api.layer1.Layer1CustomPanelsGetter, velox.api.layer1.settings.Layer1ConfigSettingsInterface, velox.api.layer1.layers.strategies.interfaces.Layer1IndicatorColorInterface, velox.api.layer1.Layer1ApiInstrumentSpecificEnabledStateProvider, velox.api.layer1.layers.strategies.interfaces.Layer1PriceAxisRangeCalculatable, velox.api.layer1.layers.strategies.interfaces.Layer1WidgetRangeInterface, velox.api.layer1.layers.strategies.interfaces.Layer1StrategyAddInterface, velox.api.layer1.localization.Layer1LocalizationInterface
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface velox.api.layer1.layers.Layer1ApiTimeSource
velox.api.layer1.layers.Layer1ApiTimeSource.Layer1TimeSourceShortcutAllowedNested classes/interfaces inherited from interface velox.api.layer1.layers.strategies.interfaces.Layer1PriceAxisRangeCalculatable
velox.api.layer1.layers.strategies.interfaces.Layer1PriceAxisRangeCalculatable.InputPriceAxisInfo, velox.api.layer1.layers.strategies.interfaces.Layer1PriceAxisRangeCalculatable.ResultPriceAxisInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final velox.api.layer1.layers.strategies.interfaces.CustomEventAggregatbleFields inherited from class velox.api.layer1.layers.Layer1ApiInjectorRelay
upstreamInjectorLockFields inherited from class velox.api.layer1.layers.Layer1ApiRelay
providerFields inherited from class velox.api.layer1.layers.Layer1ApiUpstreamRelay
closedFields inherited from class velox.api.layer1.Layer1ApiBasicListenable
adminListeners, dataListeners, instrumentListeners, mboDataListeners, theOnlyAdminListener, theOnlyDataListener, theOnlyInstrumentListener, theOnlyMboDataListener, theOnlyTradingListener, tradingListeners -
Constructor Summary
ConstructorsConstructorDescriptionSimplifiedL1ApiLoader(velox.api.layer1.Layer1ApiProvider provider, Class<T> clazz) -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptLocalizedBundleProvider(velox.api.layer1.localization.LocalizedBundleProvider localizedBundleProvider) voidacceptSettingsInterface(velox.api.layer1.messages.indicators.SettingsAccess settingsAccess) voidaddColorChangeListener(velox.colors.ColorsChangedListener listener) voidclose()createUserSettingsFromAnnotations(Object instance, Class<? extends Annotation> clazz, String alias, boolean settingsExist) voidfinish()longvelox.gui.StrategyPanel[]getCustomGuiFor(String alias, String indicatorName) 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) getUserSettings(String alias) booleanisStrategyEnabled(String alias) voidonBalance(velox.api.layer1.data.BalanceInfo balanceInfo) voidvoidonInstrumentAdded(String alias, velox.api.layer1.data.InstrumentInfo instrumentInfo) voidonInstrumentRemoved(String alias) voidonMboCancel(String alias, String orderId) voidonMboReplace(String alias, String orderId, int price, int size) voidvoidonOrderExecuted(velox.api.layer1.data.ExecutionInfo executionInfo) voidonOrderUpdated(velox.api.layer1.data.OrderInfoUpdate orderInfoUpdate) voidonStatus(velox.api.layer1.data.StatusInfo statusInfo) voidvoidonStrategyCheckboxEnabled(String alias, boolean isEnabled) voidvoidonUserMessage(Object data) voidrestartInstrument(String alias) sendUserMessage(Object data) voidsendUserMessageAsync(Object data) voidvoidsetStrategyEnabledRecheckCallback(String alias, Runnable recheckCallback) voidsettingsChanged(String alias, UserSettings settings) voidsetWidgetConsumer(String alias, String fullName, velox.api.layer1.layers.strategies.interfaces.WidgetRangeConsumer consumer) Methods inherited from class velox.api.layer1.layers.Layer1ApiInjectorRelay
inject, injectSynchronously, onConnectionLost, onConnectionRestored, onInstrumentAlreadySubscribed, onInstrumentNotFound, onLoginFailed, onLoginSuccessful, onMarketMode, onSystemTextMessage, safeInjectMethods inherited from class velox.api.layer1.layers.Layer1ApiRelay
formatPrice, getSource, getSupportedFeatures, getTimeSource, login, sendOrder, setProvider, subscribe, toString, unsubscribe, updateOrderMethods inherited from class velox.api.layer1.Layer1ApiBasicListenable
addListener, addListener, addListener, addListener, addListener, getAdminListenerBroadcaster, getDataListenerBroadcaster, getInstrumentListenerBroadcaster, getTradingListenerBroadcaster, getUniqueListenersCount, onNoSubscribers, removeListener, removeListener, removeListener, removeListener, removeListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface velox.api.layer1.Layer1ApiAdminListenable
addListener, removeListenerMethods inherited from interface velox.api.layer1.Layer1ApiDataListenable
addListener, removeListenerMethods inherited from interface velox.api.layer1.Layer1ApiInstrumentListenable
addListener, removeListenerMethods inherited from interface velox.api.layer1.Layer1ApiInstrumentProvider
subscribeMethods inherited from interface velox.api.layer1.Layer1ApiMboDataListenable
addListener, removeListenerMethods inherited from interface velox.api.layer1.Layer1ApiTradingListenable
addListener, removeListener
-
Field Details
-
CUSTOM_TRADE_EVENTS_AGGREGATOR
public static final velox.api.layer1.layers.strategies.interfaces.CustomEventAggregatble CUSTOM_TRADE_EVENTS_AGGREGATOR -
initialUserSettings
-
-
Constructor Details
-
SimplifiedL1ApiLoader
-
-
Method Details
-
acceptLocalizedBundleProvider
public void acceptLocalizedBundleProvider(velox.api.layer1.localization.LocalizedBundleProvider localizedBundleProvider) - Specified by:
acceptLocalizedBundleProviderin interfacevelox.api.layer1.localization.Layer1LocalizationInterface
-
onStrategyAdd
public void onStrategyAdd()- Specified by:
onStrategyAddin interfacevelox.api.layer1.layers.strategies.interfaces.Layer1StrategyAddInterface
-
finish
public void finish()- Specified by:
finishin interfacevelox.api.layer1.Layer1ApiFinishable
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacevelox.api.layer1.Layer1ApiAdminProvider- Overrides:
closein classvelox.api.layer1.layers.Layer1ApiInjectorRelay
-
setColor
- Specified by:
setColorin interfacevelox.api.layer1.layers.strategies.interfaces.Layer1IndicatorColorInterface
-
getColor
- Specified by:
getColorin interfacevelox.api.layer1.layers.strategies.interfaces.Layer1IndicatorColorInterface
-
addColorChangeListener
public void addColorChangeListener(velox.colors.ColorsChangedListener listener) - Specified by:
addColorChangeListenerin interfacevelox.api.layer1.layers.strategies.interfaces.Layer1IndicatorColorInterface
-
acceptSettingsInterface
public void acceptSettingsInterface(velox.api.layer1.messages.indicators.SettingsAccess settingsAccess) - Specified by:
acceptSettingsInterfacein interfacevelox.api.layer1.settings.Layer1ConfigSettingsInterface
-
getCustomGuiFor
- Specified by:
getCustomGuiForin interfacevelox.api.layer1.Layer1CustomPanelsGetter
-
settingsChanged
-
onStrategyCheckboxEnabled
- Specified by:
onStrategyCheckboxEnabledin interfacevelox.api.layer1.Layer1ApiInstrumentSpecificEnabledStateProvider
-
isStrategyEnabled
- Specified by:
isStrategyEnabledin interfacevelox.api.layer1.Layer1ApiInstrumentSpecificEnabledStateProvider
-
setStrategyEnabledRecheckCallback
- Specified by:
setStrategyEnabledRecheckCallbackin interfacevelox.api.layer1.Layer1ApiInstrumentSpecificEnabledStateProvider
-
onUserMessage
- Specified by:
onUserMessagein interfacevelox.api.layer1.Layer1ApiAdminListener- Overrides:
onUserMessagein classvelox.api.layer1.layers.Layer1ApiInjectorRelay
-
onInstrumentAdded
- Specified by:
onInstrumentAddedin interfacevelox.api.layer1.Layer1ApiInstrumentListener- Overrides:
onInstrumentAddedin classvelox.api.layer1.layers.Layer1ApiInjectorRelay
-
onInstrumentRemoved
- Specified by:
onInstrumentRemovedin interfacevelox.api.layer1.Layer1ApiInstrumentListener- Overrides:
onInstrumentRemovedin classvelox.api.layer1.layers.Layer1ApiInjectorRelay
-
onDepth
- Specified by:
onDepthin interfacevelox.api.layer1.Layer1ApiDataListener- Overrides:
onDepthin classvelox.api.layer1.layers.Layer1ApiInjectorRelay
-
onMboSend
- Specified by:
onMboSendin interfacevelox.api.layer1.Layer1ApiMboDataListener- Overrides:
onMboSendin classvelox.api.layer1.layers.Layer1ApiInjectorRelay
-
onMboReplace
- Specified by:
onMboReplacein interfacevelox.api.layer1.Layer1ApiMboDataListener- Overrides:
onMboReplacein classvelox.api.layer1.layers.Layer1ApiInjectorRelay
-
onMboCancel
- Specified by:
onMboCancelin interfacevelox.api.layer1.Layer1ApiMboDataListener- Overrides:
onMboCancelin classvelox.api.layer1.layers.Layer1ApiInjectorRelay
-
onTrade
public void onTrade(String alias, double price, int size, velox.api.layer1.data.TradeInfo tradeInfo) - Specified by:
onTradein interfacevelox.api.layer1.Layer1ApiDataListener- Overrides:
onTradein classvelox.api.layer1.layers.Layer1ApiInjectorRelay
-
onOrderUpdated
public void onOrderUpdated(velox.api.layer1.data.OrderInfoUpdate orderInfoUpdate) - Specified by:
onOrderUpdatedin interfacevelox.api.layer1.Layer1ApiTradingListener- Overrides:
onOrderUpdatedin classvelox.api.layer1.layers.Layer1ApiInjectorRelay
-
onOrderExecuted
public void onOrderExecuted(velox.api.layer1.data.ExecutionInfo executionInfo) - Specified by:
onOrderExecutedin interfacevelox.api.layer1.Layer1ApiTradingListener- Overrides:
onOrderExecutedin classvelox.api.layer1.layers.Layer1ApiInjectorRelay
-
onStatus
public void onStatus(velox.api.layer1.data.StatusInfo statusInfo) - Specified by:
onStatusin interfacevelox.api.layer1.Layer1ApiTradingListener- Overrides:
onStatusin classvelox.api.layer1.layers.Layer1ApiInjectorRelay
-
onBalance
public void onBalance(velox.api.layer1.data.BalanceInfo balanceInfo) - Specified by:
onBalancein interfacevelox.api.layer1.Layer1ApiTradingListener- Overrides:
onBalancein classvelox.api.layer1.layers.Layer1ApiInjectorRelay
-
getPriceRanges
public 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:
getPriceRangesin interfacevelox.api.layer1.layers.strategies.interfaces.Layer1PriceAxisRangeCalculatable
-
createUserSettingsFromAnnotations
public UserSettings createUserSettingsFromAnnotations(Object instance, Class<? extends Annotation> clazz, String alias, boolean settingsExist) -
restartInstrument
-
getUserSettings
-
setWidgetConsumer
public void setWidgetConsumer(String alias, String fullName, velox.api.layer1.layers.strategies.interfaces.WidgetRangeConsumer consumer) - Specified by:
setWidgetConsumerin interfacevelox.api.layer1.layers.strategies.interfaces.Layer1WidgetRangeInterface
-
sendUserMessageAsync
-
sendUserMessage
- Specified by:
sendUserMessagein interfacevelox.api.layer1.Layer1ApiAdminProvider- Overrides:
sendUserMessagein classvelox.api.layer1.layers.Layer1ApiRelay
-
getCurrentTime
public long getCurrentTime()- Specified by:
getCurrentTimein interfacevelox.api.layer1.Layer1ApiAdminProvider- Overrides:
getCurrentTimein classvelox.api.layer1.layers.Layer1ApiRelay
-