Function SelectAccount(ByRef AccountID As Integer) As CallingResultsEnum
To choose which account that want to load its pending orders and open positions .
Note that an account must be selected before performing any operation such as making a new market order or closing a market order
||Associated Account number that want to access,value of type Integer
If you want to know the result of SelectAccount you have to assign it to a variable of type CallingResultsEnum.
You cannot call NewLimitOrder and NewSLTPOrder methods before calling this method.
Public WithEvents m_oBOAPI As CVertexFXBOAPI
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim vAccount As COAccount
Dim vClient As COClient
Dim AccountID As Integer
vClient = m_oBOAPI.ClientByIndex(1)
vAccount = m_oBOAPI.AccountByIndex(vClient.ClientID,1)
AccountID = vAccount.AccountID
Dim result As VertexFXBOAPI10.CallingResultsEnum
result = m_oBOAPI.SelectAccount(AccountID)
Private Sub m_oBOAPI_OpenPositionsLoaded() Handles m_oBOAPI.OpenPositionsLoaded
MsgBox("Open positions were loaded")
VertexFX Backoffice API Index