Class Layer1ApiGetUiValueMessage<T extends Layer1ApiGetUiValueMessage.UiState>

java.lang.Object
velox.api.layer1.messages.Layer1ApiGetUiValueMessage<T>
Type Parameters:
T - the type of the state snapshot delivered to the consumer callback
All Implemented Interfaces:
Layer1ApiStrategiesEchoMessagesLayer.StrategyEchoMessageFromLayer
Direct Known Subclasses:
Layer1ApiGetBracketsMessage, Layer1ApiGetCrossTradingRoundingMessage, Layer1ApiGetCrossTradingTargetMessage, Layer1ApiGetOcoMessage, Layer1ApiGetOrderDurationMessage, Layer1ApiGetOrderSizeMessage, Layer1ApiGetResetOrderSizeCheckboxMessage, Layer1ApiGetStopOrderDurationMessage, Layer1ApiGetStopOrderOffsetMessage, Layer1ApiGetStopOrderTypeMessage, Layer1ApiGetTrailingStopMessage

Base type for the "get current value" messages that read a single control from the Trading Control Panel.
Send via Layer1ApiAdminProvider.sendUserMessage(Object)

Each subclass targets one Trading Control Panel control and delivers its current value to the supplied consumer as a Layer1ApiGetUiValueMessage.UiState snapshot.

Works only when the Trading Control Panel is enabled.

  • Field Details

  • Constructor Details

    • Layer1ApiGetUiValueMessage

      protected Layer1ApiGetUiValueMessage(String alias, Consumer<T> consumer)
      Parameters:
      alias - the instrument alias
      consumer - callback that will receive the current Trading Control Panel state