Class CrossTradingStatusMessage

java.lang.Object
velox.api.layer1.messages.CrossTradingStatusMessage
All Implemented Interfaces:
Layer1ApiStrategiesEchoMessagesLayer.StrategyEchoMessageFromGui, velox.api.layer1.messages.Layer1ApiIgnorableUpwardMessage

public class CrossTradingStatusMessage extends Object implements Layer1ApiStrategiesEchoMessagesLayer.StrategyEchoMessageFromGui
Received by add-ons and providers when cross-trading starts/stops through Layer1ApiAdminListener.onUserMessage(Object) for add-ons and through Layer1ApiAdminProvider.sendUserMessage(Object) for providers. Note that if the target instrument is not subscribed, isDepthFull in InstrumentInfo of target instrument will be false regardless of it's value in the actual InstrumentInfo.
  • Field Details

    • hostAlias

      public final String hostAlias
      The instrument from which cross-trading happens (from which user send orders)
    • targetAlias

      public final String targetAlias
      The instrument on which cross-trading happens (on which orders are executed)
      Note: providers should receive this alias without provider type (i.e. if full target alias is "M6BH3.CME@RITHMIC" the provider should receive "M6BH3.CME")
    • status

      public final CrossTradingStatus status
    • targetInstrumentInfo

      public final InstrumentInfo targetInstrumentInfo
  • Constructor Details

    • CrossTradingStatusMessage

      public CrossTradingStatusMessage(String hostAlias, String targetAlias, CrossTradingStatus status, InstrumentInfo targetInstrumentInfo)
      Parameters:
      hostAlias - The instrument from which cross-trading happens (from which user send orders)
      targetAlias - The instrument on which cross-trading happens (on which orders are executed)
      status - Current cross-trading status
      targetInstrumentInfo - The Info of the target instrument
      See Also:
    • CrossTradingStatusMessage

      public CrossTradingStatusMessage(String hostAlias, String targetAlias, CrossTradingStatus status)
    • CrossTradingStatusMessage

      public CrossTradingStatusMessage(CrossTradingStatusMessage event)
  • Method Details