Package velox.api.layer1.messages
Class Layer1ApiGetTrailingStopMessage
java.lang.Object
velox.api.layer1.messages.Layer1ApiGetUiValueMessage<Layer1ApiGetTrailingStopMessage.TrailingStopState>
velox.api.layer1.messages.Layer1ApiGetTrailingStopMessage
- All Implemented Interfaces:
Layer1ApiStrategiesEchoMessagesLayer.StrategyEchoMessageFromLayer
public final class Layer1ApiGetTrailingStopMessage
extends Layer1ApiGetUiValueMessage<Layer1ApiGetTrailingStopMessage.TrailingStopState>
Request to obtain the current Trailing Stop settings from the Trading Control Panel.
Send via
Send via
Layer1ApiAdminProvider.sendUserMessage(Object)
Works only when the Trading Control Panel is enabled.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classHolds the current trailing stop state returned via the consumer callback.Nested classes/interfaces inherited from class velox.api.layer1.messages.Layer1ApiGetUiValueMessage
Layer1ApiGetUiValueMessage.UiState -
Field Summary
Fields inherited from class velox.api.layer1.messages.Layer1ApiGetUiValueMessage
alias, consumer -
Constructor Summary
ConstructorsConstructorDescriptionLayer1ApiGetTrailingStopMessage(String alias, Consumer<Layer1ApiGetTrailingStopMessage.TrailingStopState> consumer) -
Method Summary
-
Constructor Details
-
Layer1ApiGetTrailingStopMessage
public Layer1ApiGetTrailingStopMessage(String alias, Consumer<Layer1ApiGetTrailingStopMessage.TrailingStopState> consumer) - Parameters:
alias- the instrument aliasconsumer- callback that will receive the current trailing stop state
-