public method O2GSession.login

Brief

Starts the connection with the specified trade server.

Declaration
C#
void  login (string user, string password, string url, string connection)

Parameters
user

The user name.

password

The password.

url

The URL of the server. The URL must be a full URL, including the path to the host descriptor, for example: "http://www.fxcorporate.com/Hosts.jsp"

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.

back