Package velox.api.layer1.messages
Class Layer1ApiGetOcoMessage
java.lang.Object
velox.api.layer1.messages.Layer1ApiGetUiValueMessage<Layer1ApiGetOcoMessage.OcoState>
velox.api.layer1.messages.Layer1ApiGetOcoMessage
- All Implemented Interfaces:
Layer1ApiStrategiesEchoMessagesLayer.StrategyEchoMessageFromLayer
public final class Layer1ApiGetOcoMessage
extends Layer1ApiGetUiValueMessage<Layer1ApiGetOcoMessage.OcoState>
Request to obtain the current OCO (One-Cancels-Other) state 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 OCO 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
ConstructorsConstructorDescriptionLayer1ApiGetOcoMessage(String alias, Consumer<Layer1ApiGetOcoMessage.OcoState> consumer) -
Method Summary
-
Constructor Details
-
Layer1ApiGetOcoMessage
- Parameters:
alias- the instrument aliasconsumer- callback that will receive the current OCO state
-