Package velox.api.layer1.messages
Class SelectedAccountChangedMessage
java.lang.Object
velox.api.layer1.messages.SelectedAccountChangedMessage
- All Implemented Interfaces:
velox.api.layer1.messages.ChangeAccountsMessage
public class SelectedAccountChangedMessage
extends Object
implements velox.api.layer1.messages.ChangeAccountsMessage
Message that is sent via
Layer1ApiAdminListener.onUserMessage(Object), when the user
changes the selected trading account in the GUI on TCP (Trading Control Panel).-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSelectedAccountChangedMessage(String alias, String accountId) SelectedAccountChangedMessage(String messageId, String alias, String accountId) -
Method Summary
-
Field Details
-
alias
Alias of the instrument for which the account is selected. Cannot be null. -
accountId
Account id of the selected account. If null - no account is selected for the instrument. -
messageId
Unique id of this message.Must be unique for each
SelectedAccountChangedMessage. It can be used to correlate this message with the original one ifaliasoraccountIdwere remapped (e.g. by an add-on).If an add-on remaps the message by creating a new instance, it should copy this id to the remapped message.
Example (cross-trading):
- In
sendUserMessage: map the host instrument alias to the target alias and storemessageId -> originalHostAlias. - In
onUserMessage: ifmessageIdis present in the map, replace the alias back to the original host alias and remove the entry.
- In
-
-
Constructor Details
-
SelectedAccountChangedMessage
-
SelectedAccountChangedMessage
-
-
Method Details