public method TradeDeskAut.RetrieveTradeSessions, RetrieveTradeSessionsAsync

Brief

Gets the information about available trading sessions.

Declaration
Visual Basic
Function RetrieveTradeSessions (sUser as String, sPassword as String, sUrl as String, sConnection as String) As object
IDL
[id(422)] HRESULT RetrieveTradeSessions( [in]BSTR sUser, [in]BSTR sPassword, [in]BSTR sUrl, [in]BSTR sConnection, [out, retval] IDispatch* retVal)
Visual Basic
Sub RetrieveTradeSessionsAsync (sUser as String, sPassword as String, sUrl as String, sConnection as String)
IDL
[id(423)] HRESULT RetrieveTradeSessionsAsync( [in]BSTR sUser, [in]BSTR sPassword, [in]BSTR sUrl, [in]BSTR sConnection)

Parameters
sUser

The user name.

sPassword

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.

Details

The RetrieveTradeSessions method returns an object of the SessionDescriptorEnumAut class.

The RetrieveTradeSessionsAsync method is implemented for asynchronous execution. To get the result of method execution, use the events of TradeDeskEventsSink.OnRetrieveSessionsCompleted and TradeDeskEventsSink.OnRetrieveSessionsFailed or pending events of the kind KIND_SESSIONSLISTCOMPLETED and KIND_SESSIONSLISTFAILED.

The RetrieveTradeSessions and RetrieveTradeSessionsAsync methods are defined in the TradeDeskAut class.

back