Knowledgebase:
SelectAccount
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 28 July 2016 02:50 PM

Syntax

Public Function SelectAccount(ByRef AccountID As Integer) As VertexFXClientAPI10.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.

Parameters

Part Description 
AccountID Associated Account number that want to access,value of type Integer,

Return value

Returns value of type CallingResultsEnum.If the request sent to the server successfully it will return SuccessResult.

Sample

Private Sub Btn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btn.Click

        Dim result As VertexFXClientAPI10.CallingResultsEnum

        'API is a predefined variable as CVertexFXClientAPI10

        result = API.SelectAccount(123445672)

        MsgBox("Select Account result : " & result.Tostring)

End Sub


See Also


VertexFX Client API Index

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions