Package velox.api.layer1
Interface Layer1ApiInstrumentProvider
- All Superinterfaces:
Layer1ApiInstrumentListenable
- All Known Subinterfaces:
Layer1ApiProvider
- All Known Implementing Classes:
ExternalLiveBaseProvider,ExternalReaderBaseProvider,Layer1ApiDepthFreezer,Layer1ApiInjectorRelay,Layer1ApiRelay,Layer1ApiStrategiesEchoMessagesLayer
@DefaultQualifier(org.checkerframework.checker.nullness.qual.NonNull.class)
public interface Layer1ApiInstrumentProvider
extends Layer1ApiInstrumentListenable
Class implementing this should provide ability to work with instruments
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidDeprecated.voidsubscribe(SubscribeInfo subscribeInfo) Subscribe to specified instrument.voidunsubscribe(String alias) Unsubscribe from the instrumentMethods inherited from interface velox.api.layer1.Layer1ApiInstrumentListenable
addListener, removeListener
-
Method Details
-
subscribe
Subscribe to specified instrument. Some parameters can be null depending on the platform.- Parameters:
subscribeInfo- has fields similar toInstrumentCoreInfo
-
subscribe
Deprecated.Deprecated. Default implementation forwards events to new method. Use
Subscribe to specified instrument. Some parameters can be null depending on the platform.subscribe(SubscribeInfo)instead- Parameters:
symbol-exchange-type- seeInstrumentCoreInfo.type
-
unsubscribe
Unsubscribe from the instrument- Parameters:
alias- instrument alias
-