Interface MultiInstrumentListener

All Known Subinterfaces:
AllDataModule, MultiInstrumentAdapter

public interface MultiInstrumentListener
Listen to data from multiple instruments at once. Without this interface you will only get data about the alias passed inside CustomModule.initialize(String, InstrumentInfo, Api, InitialState), when this interface is implemented data for all instruments will be received. You can determine which instrument data belongs to by the alias set with previous onCurrentInstrument(String) call. Note, that if alias did not change between two updates onCurrentInstrument(String) will not be called.
  • Method Summary

    Modifier and Type Method Description
    void onCurrentInstrument​(java.lang.String alias)  
    void onInstrumentAdded​(velox.api.layer1.data.InstrumentInfo info)