Knowledgebase: > Properties
OpenPositionsCount
Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 09 September 2020 09:58 AM

Syntax

 Readonly Property OpenPositionsCount As Integer

Description

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