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 void subscribe​(java.lang.String symbol, java.lang.String exchange, java.lang.String type)
    Deprecated.
    void subscribe​(SubscribeInfo subscribeInfo)
    Subscribe to specified instrument.
    void unsubscribe​(java.lang.String alias)
    Unsubscribe from the instrument

    Methods inherited from interface velox.api.layer1.Layer1ApiInstrumentListenable

    addListener, removeListener
  • Method Details

    • subscribe

      void subscribe​(SubscribeInfo subscribeInfo)
      Subscribe to specified instrument. Some parameters can be null depending on the platform.
      Parameters:
      subscribeInfo - has fields similar to InstrumentCoreInfo
    • 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(SubscribeInfo) instead

      Subscribe to specified instrument. Some parameters can be null depending on the platform.
      Parameters:
      symbol -
      exchange -
      type - see InstrumentCoreInfo.type
    • unsubscribe

      void unsubscribe​(java.lang.String alias)
      Unsubscribe from the instrument
      Parameters:
      alias - instrument alias