Layer1ApiSetOrderSizeMessage
Package: velox.api.layer1.messages
Type: Class
Inheritance: java.lang.Object รขโ โ velox.api.layer1.messages.Layer1ApiTradingMessageWithCallback รขโ โ Layer1ApiSetOrderSizeMessage
Descriptionโ
Requests to change the order size 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.
Fieldsโ
ORDER_SIZE_MIN_VALUEโ
public static final int ORDER_SIZE_MIN_VALUE
ORDER_SIZE_MAX_VALUEโ
public static final int ORDER_SIZE_MAX_VALUE
orderSizeโ
public final int orderSize
Constructorsโ
Layer1ApiSetOrderSizeMessageโ
public Layer1ApiSetOrderSizeMessage(String alias, int orderSize, Layer1ApiTradingMessageWithCallback.TradingMessageResponseListener listener)
Parameters:
orderSize- To be applied in the Trading Control Panel. The value should be betweenORDER_SIZE_MIN_VALUEandORDER_SIZE_MAX_VALUENote that theInstrumentInfo.sizeMultiplierof the instrument will be applied to the value!
Methodsโ
toStringโ
public String toString()
Overrides: toString in class Object