Communication Messages
From Open Forex Platform Wiki
Class DataSource
TradingValuesUpdateMessage
Description: To notify subscribers of change in tick values or send the current tick values.
Direction: To Subscribers
Class ExecutionSource
AccountInformationMessage
Description: Command to the Execution Source to get the current Account Information
Direction: To Execution Source
AccountInformationUpdateMessage
Description: Response to previous AccountInformationMessage.
Direction: To Subscribers
CloseAllOrdersMessage
Description: Command to the Execution Source to close all orders.
Direction: To Execution Source
CloseAllOrdersResponceMessage
Description: Response from the Execution Source to the subscriber with results of a previous CloseAllOrders message.
Direction: To Subscribers
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
CloseOrderVolumeResponceMessage
Description: Response from the Execution Source to the subscriber with results of a previous CloseOrderVolume message.
Direction: To Subscriber
GetAllOrdersMessage
Description: Command to the Execution Source to get all orders.
Direction: To Execution Source
GetAllOrdersResponceMessage
Description: Response from the Execution Source to the subscriber with results of a previous GetAllOrdersMessage.
Direction: To Subscriber
ModifyOrderMessage
Description: Command to the Execution Source to modify a specific order.
Direction: To Execution Source
ModifyOrderResponceMessage
Description: Response from the Execution Source to the subscriber with results of a previous ModifyOrder message.
Direction: To Subscriber
OpenOrderMessage
Description: Command to the Execution Source to open a new order.
Direction: To Execution Source
OpenOrderResponceMessage
Description: Response from the Execution Source to the subscriber with results of a previous ModifyOrder message.
Direction: To Subscriber
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
OrdersInformationResponceMessage
Description: Response from the Execution Source to the subscriber with results of a previous OrdersInformation message.
Direction: To Subscriber
RequestValuesMessage
Description: A command to the Execution Source to return current TradingValuesUpdateMessage.
Direction: To Execution Source
Class Platform
UnInitializeComponentMessage
Description: Send message to any platform component to instruct it to uninitialize.
Direction: To platform component
ComponentUnInitializedMessage
Description: Response from component after uninitialization. Direction: To platform
SubscribeToSourcesMessage
Description: Subscribe to a Data or Execution Source.
Direction: To Data or Execution Source.
SourceUpdatedMessage
Description: Response to a SubscribeToSourcesMessage.
Direction: To Data or Execution Source.
UnSubscribeToSourcesMessage
Description: UnSubscribe from a Data Source or Execution Source
Direction: To Data or Execution Source
SourcesSubscriptionTerminatedMessage
Description: Message to subscriber to that subscription was terminated
Direction: To subscriber
Class Session
GetSessionsMessage
Description: Message to Server (of sessions) to return the SessionInfo objects
Direction: To server
SessionsUpdatesMessage
Description: Response to GetSessionsMessage with session info objects
Direction: To subscriber
SessionErrorOccuredMessage
Description: Message to transport an error occurred string and session info associated with it.
Direction: To subscriber
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
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
SubscribeToSessionMessage
Description: Command to subscribe to a SessionInfo usually in initialize of Provider.
Direction: To SessionInfo
UnSubscribeToSessionMessage
Description: Command to unsubscribe to a SessionInfo unsually in uninitialize of Provider
Direction: To SessionInfo
SubscribeToSessionsUpdatesMessage
Description: Command to subscribe session updates
Direction: ??
UnSubscribeToSessionsUpdatesMessage
Description: Command to unsubscribe session updates
Direction: ??
SubscriptionToSessionStartedMessage
Description: Command to ??
Direction: ??
SubscriptionToSessionTerminatedMessage
Description: Command to ??
Direction: ??


































