Package velox.api.layer1
Interface Layer1ApiInstrumentProvider
- All Superinterfaces:
Layer1ApiInstrumentListenable
- All Known Subinterfaces:
Layer1ApiProvider
- All Known Implementing Classes:
ExternalLiveBaseProvider,ExternalReaderBaseProvider,Layer1ApiDepthFreezer,Layer1ApiInjectorRelay,Layer1ApiRelay,Layer1ApiStrategiesEchoMessagesLayer
public interface Layer1ApiInstrumentProvider extends Layer1ApiInstrumentListenable
Class implementing this should provide ability to work with instruments
-
Method Summary
Modifier and Type Method Description default voidsubscribe(java.lang.String symbol, java.lang.String exchange, java.lang.String type)Deprecated.voidsubscribe(SubscribeInfo subscribeInfo)Subscribe to specified instrument.voidunsubscribe(java.lang.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 default void subscribe(java.lang.String symbol, java.lang.String exchange, java.lang.String type)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
void unsubscribe(java.lang.String alias)Unsubscribe from the instrument- Parameters:
alias- instrument alias
-