Package velox.api.layer1.messages
package velox.api.layer1.messages
-
ClassDescriptionYou can control instruments shown in bookmap subscription dialog using this message.Received by add-ons and providers when cross-trading starts/stops through
Layer1ApiAdminListener.onUserMessage(Object)for add-ons and throughLayer1ApiAdminProvider.sendUserMessage(Object)for providers.NOTE: any event class can not be used by multiple generatorsIS USED ONLY IN THE EMBEDDED Is received by providers throughLayer1ApiAdminProvider.sendUserMessage(Object)when account info from embedded client needs to be converted intoAccountInfo.idthat the adapter sent before usingTradingAccountsInfoMessage.Provider should send the callback usingLayer1ApiAdminListener.onUserMessage(Object)if the account was not found by providedLayer1ApiAccountIdConvertMessage.additionalAccountInfoIs received by providers when sending additional login data throughLayer1ApiAdminProvider.sendUserMessage(Object).WORKS ONLY IN THE EMBEDDED The request that is sent by provider throughLayer1ApiAdminListener.onUserMessage(Object)if it needs some additioanl login data.Use this message to send GUI panels for configuration ofLayer1ApiSoundAlertMessage's, created by your addon (specified viaLayer1ApiAlertGuiMessage.source).Bookmap sends this message to the addon, if a user changed alert settings via GUI.Request to change the selected account in the Trading Control Panel.
Send viaLayer1ApiAdminProvider.sendUserMessage(Object)Deprecated.The mode to be enabled or disabled in the Trade Control PanelRequest for alias generation based on symbol, exchange, type.Historical data for this alias have been loaded
If any data (like sum of trades at time) was cached for this instrument, it may not be valid nowUsed to mark classes that are not required to be intercepted before reaching lower (provider) end of the chain.Is used for statistics onlyNotify bookmap that previous order sent withSimpleOrderSendParameters.closingPositionHintwas processed successfullyProviders time will be sent using CurrentTimeUserMessage at least as often as specified by interval There is one exception: if system was in sleep mode or system time was changed while bookmap was working, some events might be skipped, and event withCurrentTimeUserMessage.isEventsSkipped= true flag will be sentRequests to change the order size in the Trading Control Panel.Show alert panel to user if it's currently not shownShow bottom panel to user if it's currently not shownShow shortcut panel to user if it's currently not shownCancels all messages that are currently pending, that match filter.Use this message to declare your addon intents of sending alerts to a user.This message triggers Bookmap to show a notification/play sound alert.Builder to buildLayer1ApiSoundAlertMessage.Request to freeze time temporarily.The response, which can be received viaLayer1ApiTradingMessageWithCallback.TradingMessageResponseListenerIs used to receive aLayer1ApiTradingMessageWithCallback.ResponseafterLayer1ApiTradingMessageWithCallbackwas processedUsed to add/remove custom update generators
Important: usesendUserMessagewhen sending fromLayer1Attachable,Layer1SimpleAttachableorLayer1Injectablebut useonUserMessagefromLayer1UpstreamDataEditor
When generator is added with this message, custom events will be generated for past history - this can take some time.Adds new action to dropdown menu for every instrument in ControlGuiDeprecated.for a few reasons: it's not safe to use without user code wrapping and seems not used by any add-on developers, so it's not supported any moreDescribes single menu item that is created by this messageCan be used to print some text over chart with optional close icon
If message withLayer1ApiUserMessageNotification.idwas already present, displayed message will be updated
Messages need to be removed with this message (note that you need to do this in response for close icon pressed as well)This message is generated after a reading of catch up data is finished.For all opened dialogs with strategies settings, GUI elements will be reloadedThis message requests account selection.Message that is sent viaLayer1ApiAdminListener.onUserMessage(Object), when the user changes the selected trading account in the GUI on TCP (Trading Control Panel).Message containing an account info for one of the accounts of the instrument.Message should implement this interface if it wants to update an existing custom indicatorStrategy will receive this message with it's target class specified when it is added and can start sending messages
(message.getClass() == (strategy class).class) should return true if it is target of the message
Note that there can be many messages of this type that are not related to your classWhen rewind happens this message will be sentDeprecated.
It is deprecated because of new multi-account concept.