Class Layer1ApiChangeSelectedAccountMessage

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

public final class Layer1ApiChangeSelectedAccountMessage extends Layer1ApiTradingMessageWithCallback
Request to change the selected account 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).

To get the list of available accounts, use AccountListManager or TradingAccountsInfoMessage.

See Also:
  • Field Details

    • alias

      public final String alias
      Alias of the instrument for which the account should be selected. Cannot be null.
    • accountId

      public final String accountId
      Account id of the selected account.
      If null - no account will be selected for the instrument ("None"), trading will be disabled.
  • Constructor Details

  • Method Details