public method IO2GSession.login
Brief
Starts the connection with the specified trade server.
Declaration | ||||
|
Parameters | |
user |
The user name. |
pwd |
The password. |
url |
The URL of the server. The URL must be a full URL, including the path to the host descriptor,
for example |
connection |
The name of the connection, for example "Demo" or "Real". |
Details
The connection parameters are exactly the same as can be used for the Trading Station application or ForexConnect API.
Please note that the method only starts the connection. To watch the connection status, please implement the
IO2GSessionStatus
interface and subscribe an instance of the implementing class to the
session using the subscribeSessionStatus
method.
Please note that all open connections must be closed before exiting the application.
Declared in IO2GSession