Syntax
Public Overrides Function NetOpenPositionsReport(ByRef ClientID As Integer , ByRef AccountType As Integer, ByVal SymbolID As Integer, ByVal PositionType As Integer) As TransResult
This function is used to get the net open positions report which shows the net open Position details for all accounts under client ID. After NetOpenPositionsReport executes the ReportDataReceivedevent fires.
Parameters
Key | Description |
clientID | The report will show the net open position details for all accounts under this client. Value of type is Integer. |
AccountType | The type of accounts which will appear in the report whether for normal accounts or for coverage accounts. Value of type is Integer. 1: means normal account. 2 : means coverage account |
SymbolID | The report shows the net open position details for this symbol. Value of type is Integer. 0 means all symbols. |
PositionType | This report shows the net open position details for this type. Value of type is Integer. 0 means All 1 means Buy type -1 means Sell type |
Return value
Returns value of type TransResult. If the request was sent to server successfully it will return Succeeded.
Sample
Private Sub NetOpen_Click (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NetOpen.Click Dim Result As VertexFXBridgeAPI.TransResult Dim Root_ID As Integer = BO.GetBO.RootID () Result= BO.GetBO.NetOpenPositionsReport(Root_ID,1, 0, 0) End Sub
Result:
The result of this report contains many details; the following table shows each column description
Data row Index | Column name | Description |
1 | Account | Shows the account ID of each client under the group you chose for the generated report |
2 | B/S | The type of the net open position(Buy/Sell) 1 means Buy type -1 means Sell type |
3 | Amount | The amount of each net open position. |
4 | Symbol ID | The symbol ID ofeach net opened position. |
5 | Avg Price | The used margin of each client shown in the report |
6 | Client ID | The client IDfor the account |
See Also