Package velox.api.layer1.messages
Class Layer1ApiSetStopOrderDurationMessage
java.lang.Object
velox.api.layer1.messages.Layer1ApiTradingMessageWithCallback
velox.api.layer1.messages.Layer1ApiSetStopOrderDurationMessage
Request to change the Stop Order Duration in the Trading Control Panel.
Send via
Send via
Layer1ApiAdminProvider.sendUserMessage(Object)
This message is only processed if it was sent from a trading strategy (see Layer1TradingStrategy).
Works only when the Trading Control Panel is enabled.
The available stop order durations depend on the provider's supported features (see supportedStopDurations
in Layer1ApiProviderSupportedFeatures). If the specified duration is not supported
by the current provider, the request is rejected (the response will be ACTION_REJECTED) and the value is left
unchanged.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class velox.api.layer1.messages.Layer1ApiTradingMessageWithCallback
Layer1ApiTradingMessageWithCallback.Response, Layer1ApiTradingMessageWithCallback.TradingMessageResponseListener -
Field Summary
FieldsFields inherited from class velox.api.layer1.messages.Layer1ApiTradingMessageWithCallback
alias, listener -
Constructor Summary
ConstructorsConstructorDescriptionLayer1ApiSetStopOrderDurationMessage(String alias, OrderDuration duration, Layer1ApiTradingMessageWithCallback.TradingMessageResponseListener listener) -
Method Summary
-
Field Details
-
duration
-
-
Constructor Details
-
Layer1ApiSetStopOrderDurationMessage
public Layer1ApiSetStopOrderDurationMessage(String alias, OrderDuration duration, Layer1ApiTradingMessageWithCallback.TradingMessageResponseListener listener) - Parameters:
duration- the stop order duration to set (cannot be null)
-
-
Method Details