Class Layer1ApiFlattenPositionMessage

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

public final class Layer1ApiFlattenPositionMessage extends Layer1ApiTradingMessageWithCallback
Requests to flatten (close) the current position for the instrument, like pressing "Flatten" in the Trading Control Panel.

This message is only processed if it was sent from a trading strategy (see Layer1TradingStrategy).

Works only when the Trading Control Panel is enabled.