Interface Layer1ApiDataProvider

All Superinterfaces:
Layer1ApiDataListenable
All Known Subinterfaces:
Layer1ApiProvider
All Known Implementing Classes:
ExternalLiveBaseProvider, ExternalReaderBaseProvider, Layer1ApiDepthFreezer, Layer1ApiInjectorRelay, Layer1ApiRelay, Layer1ApiStrategiesEchoMessagesLayer

public interface Layer1ApiDataProvider
extends Layer1ApiDataListenable
Class implementing this should provide trade/depth data to subscribers
  • Method Summary

    Modifier and Type Method Description
    java.lang.String formatPrice​(java.lang.String alias, double price)
    Format price using platform capabilities if possible

    Methods inherited from interface velox.api.layer1.Layer1ApiDataListenable

    addListener, removeListener
  • Method Details

    • formatPrice

      java.lang.String formatPrice​(java.lang.String alias, double price)
      Format price using platform capabilities if possible
      Parameters:
      alias -
      price -
      Returns:
      Throws:
      InstrumentNotDefinedException - if instrument was not subscribed to, so pips can not be found