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 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(String symbol, @Nullable String exchange, 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(String alias)
      Unsubscribe from the instrument
      Parameters:
      alias - instrument alias