public method TradeDeskAut.LoginAsync
Brief
Establishes connection with the trade server. The method is implemented for asynchronous execution.
Declaration | ||||
|
||||
|
Parameters | |
sLogin |
The user name. |
sPassw |
The password. |
sUrl |
The URL of the host descriptor. This value is provided with the account. |
sConnection |
The name of the connection (e.g. Demo or Real). This value is provided with the account. |
sSessionSubid |
The identifier of the trading session. For users who have multiple accounts of different types and get access to them using the same login/password:
specify For other users: specify an empty string (""). |
sPIN |
In case the PIN is required, specify the PIN provided with the account. Otherwise, specify an empty string (""). To check whether the PIN is required to login, use the |
Details
The LoginAsync
method is implemented for asynchronous execution.
To get the result of method execution, use the events of
TradeDeskEventsSink.OnSessionStatusChanged
or pending events of the kind KIND_SESSIONSTATUSCHANGE
.
If an error occurs during login, the status Disconnected
is returned.
In this case you can get the text of the error using the TradeDeskAut.LastError
property.
The LoginAsync
method is defined in the TradeDeskAut
class.