Mozilla Skin

Communication Messages

From Open Forex Platform Wiki

Contents

Class DataSource

TradingValuesUpdateMessage

Description: To notify subscribers of change in tick values or send the current tick values.

Direction: To Subscribers

Image:TradingValuesUpdateMessage.jpeg


Class ExecutionSource

AccountInformationMessage

Description: Command to the Execution Source to get the current Account Information

Direction: To Execution Source

Image:AccountInformationMessage.jpeg

AccountInformationUpdateMessage

Description: Response to previous AccountInformationMessage.

Direction: To Subscribers

Image:AccountInformationUpdateMessage.jpeg


CloseAllOrdersMessage

Description: Command to the Execution Source to close all orders.

Direction: To Execution Source

Image:CloseAllOrdersMessage.jpeg


CloseAllOrdersResponceMessage

Description: Response from the Execution Source to the subscriber with results of a previous CloseAllOrders message.

Direction: To Subscribers

Image:CloseAllOrdersResponceMessage.jpeg

Typical usage: Expert issues CloseAll to ExecutionSource. ExecutionSource asynchronously picks up the CloseAll, performs the CloseAll. Then ExecutionSource sends a response to subscriber with CloseAllOrdersResponceMessage.

Module flow:

Expert within OFXP -> CloseAll -> ExecutionSource -> QueueMessage

MT4: later after at least 1 tick … Check for CloseAll in HandleCloseAllOrdersRequest -> Perform Close All operation -> Send CloseAllRespose by calling AllOrdersClosed() in the integration DLL -> Send CloseAllOrdersResponceMessage to subscriber

CloseOrderVolumeMessage

Description: Command to the Execution Source to partially close an order by volume specified in the message.

Direction: To Execution Source

Image:CloseOrderVolumeMessage.jpeg


CloseOrderVolumeResponceMessage

Description: Response from the Execution Source to the subscriber with results of a previous CloseOrderVolume message.

Direction: To Subscriber

Image:CloseOrderVolumeResponceMessage.jpeg


GetAllOrdersMessage

Description: Command to the Execution Source to get all orders.

Direction: To Execution Source

Image:GetAllOrdersMessage.jpeg


GetAllOrdersResponceMessage

Description: Response from the Execution Source to the subscriber with results of a previous GetAllOrdersMessage.

Direction: To Subscriber

Image:GetAllOrdersResponceMessage.jpeg

ModifyOrderMessage

Description: Command to the Execution Source to modify a specific order.

Direction: To Execution Source

Image:ModifyOrderMessage.jpeg

ModifyOrderResponceMessage

Description: Response from the Execution Source to the subscriber with results of a previous ModifyOrder message.

Direction: To Subscriber

Image:ModifyOrderResponceMessage.jpeg


OpenOrderMessage

Description: Command to the Execution Source to open a new order.

Direction: To Execution Source

Image:OpenOrderMessage.jpeg


OpenOrderResponceMessage

Description: Response from the Execution Source to the subscriber with results of a previous ModifyOrder message.

Direction: To Subscriber

Image:OpenOrderResponceMessage.jpeg

OrdersInformationMessage

Description: Command to the Execution Source to current orders information – note this is multistep i.e multiple order information can be requested and will be returned in an array. OrderInformation is OpenPrice, CurrentProfit, OpenTime etc.

Direction: To Execution Source

Image:OrdersInformationMessage.jpeg


OrdersInformationResponceMessage

Description: Response from the Execution Source to the subscriber with results of a previous OrdersInformation message.

Direction: To Subscriber

Image:OrdersInformationResponceMessage.jpeg


RequestValuesMessage

Description: A command to the Execution Source to return current TradingValuesUpdateMessage.

Direction: To Execution Source

Image:RequestValuesMessage.jpeg


Class Platform

UnInitializeComponentMessage

Description: Send message to any platform component to instruct it to uninitialize.

Direction: To platform component

Image:UnInitializeComponentMessage.jpeg


ComponentUnInitializedMessage

Description: Response from component after uninitialization. Direction: To platform

Image:ComponentUnInitializedMessage.jpeg

SubscribeToSourcesMessage

Description: Subscribe to a Data or Execution Source.

Direction: To Data or Execution Source.

Image:SubscribeToSourcesMessage.jpeg


SourceUpdatedMessage

Description: Response to a SubscribeToSourcesMessage.

Direction: To Data or Execution Source.

Image:SourceUpdatedMessage.jpeg


UnSubscribeToSourcesMessage

Description: UnSubscribe from a Data Source or Execution Source

Direction: To Data or Execution Source

Image:UnSubscribeToSourcesMessage.jpeg


SourcesSubscriptionTerminatedMessage

Description: Message to subscriber to that subscription was terminated

Direction: To subscriber

Image:SourcesSubscriptionTerminatedMessage.jpeg


Class Session

GetSessionsMessage

Description: Message to Server (of sessions) to return the SessionInfo objects

Direction: To server

Image:GetSessionsMessage.jpeg


SessionsUpdatesMessage

Description: Response to GetSessionsMessage with session info objects

Direction: To subscriber

Image:SessionsUpdatesMessage.jpeg


SessionErrorOccuredMessage

Description: Message to transport an error occurred string and session info associated with it.

Direction: To subscriber

Image:SessionErrorOccuredMessage.jpeg


SessionOperationMessage

Description: Mainly the base class for command messages associated with a session. For instance messages in the ExecutionSource.

Direction: To Execution or Data Sources

Image:SessionOperationMessage.jpeg


SessionOperationResponceMessage

Description: Mainly the base class for response messages associated with a session. For instance, messages in the ExecutionSource.

Direction: From Execution or Data Sources

Image:SessionOperationResponceMessage.jpeg


SubscribeToSessionMessage

Description: Command to subscribe to a SessionInfo usually in initialize of Provider.

Direction: To SessionInfo

Image:SubscribeToSessionMessage.jpeg


UnSubscribeToSessionMessage

Description: Command to unsubscribe to a SessionInfo unsually in uninitialize of Provider

Direction: To SessionInfo

Image:UnSubscribeToSessionMessage.jpeg


SubscribeToSessionsUpdatesMessage

Description: Command to subscribe session updates

Direction: ??

Image:SubscribeToSessionsUpdatesMessage.jpeg


UnSubscribeToSessionsUpdatesMessage

Description: Command to unsubscribe session updates

Direction: ??

Image:UnSubscribeToSessionsUpdatesMessage.jpeg


SubscriptionToSessionStartedMessage

Description: Command to ??

Direction: ??

Image:SubscriptionToSessionStartedMessage.jpeg


SubscriptionToSessionTerminatedMessage

Description: Command to ??

Direction: ??

Image:SubscriptionToSessionTerminatedMessage.jpeg