Class Layer1ApiSetStopOrderOffsetMessage

java.lang.Object
velox.api.layer1.messages.Layer1ApiTradingMessageWithCallback
velox.api.layer1.messages.Layer1ApiSetStopOrderOffsetMessage

public final class Layer1ApiSetStopOrderOffsetMessage extends Layer1ApiTradingMessageWithCallback
Request to change the Stop Order (stop-limit) price offset in the Trading Control Panel.
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 offset is expressed in ticks and only takes effect for stop-limit orders (i.e. when the stop order type is OrderType.LMT). A negative offset is only accepted for instruments whose provider reports support for it (see negativeStopLimitOffset in Layer1ApiProviderSupportedFeatures); if a negative offset is requested for a provider that does not support it, the request is rejected (the response will be ACTION_REJECTED) and the value is left unchanged.

See Also: