Knowledgebase:
OpenPositionsCount
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 08 August 2016 01:59 PM

Syntax

Readonly Property OpenPositionsCount As Integer

This property used to return the total number of all open positions on trade list .

Parameters

No parameters.

Remarks  

In the case you want to know how many open positions you have, you can use this property, or in the case you want to list all of the open positions you can use this method to know the open positions count then use OpenPositionByIndex method in a loop starts from 1 to count.

Return value

Returns open position total as value of type Integer.

Sample

 Public WithEvents BOAPI As CVertexFXBOAPI

Private Sub Count_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Count.Click

    Dim Count As Integer

    Count = BOAPI.OpenPositionsCount 

    Msgbox(Count)

 End Sub


See Also


VertexFX Backoffice 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