Syntax
Public Overrides Function SymbolTypesReport (ClientID As Integer, ByRef fromDate As String, ByRef ToDate As String) As TransResult
This function is used to get the symbol type report which shows the net closed positions for the symbol types (Spot/Future) of the account(s). After SymbolTypesReport executes the ReportDataReceived event fire.
Parameters
Key | Description |
clientID | The client number which the report will show symbol types for all accounts under this client. Value of type is Integer. |
FromDate | Specify the duration. Value of type is String. Date in this format DD/MM/YYYY HH:NN:SS, means form beginning |
ToDate | Specify the duration. Value of type is String. Date in this format DD/MM/YYYY HH:NN:SS, means till now. |
Return value
Returns value of type TransResult. If the request was sent to server successfully it will return Succeeded.
Sample
Private Sub SymbolTypes_Click (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SymbolTypes.Click Dim Result As VertexFXBridgeAPI.TransResult Dim Root_ID As Integer = BO.GetBO.RootID () Result= BO.GetBO.SymbolTypesReport(Root_ID, , "") 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 all the accounts IDs and name of all accounts which have closed positions on each symbol type. |
2 | Type | The type of the closed positions for each account (Depends on the symbols group which exists in the symbol settings). |
3 | Amount | The net amount of the closed positions on each symbol type for each account. |
4 | Commission | The commission of the closed positions on each symbol type for each account. |
5 | Interest | The interest of the closed positions on each symbol type for each account. |
6 | PL | The rofit/loss of the closed positions on each symbol type for each account. |
7 | Client ID | The client ID for the account. |
See Also