Syntax
Public Function NetOpenPositionsReport(ClientID As Long, AccountType As Long, SymbolID As Long, PositionType As Long) As String
Description
The NetOpenPositionsReport operation is used to get a net open position report that shows the net open position details for all accounts under the given
client number.
Request Parameters
Name |
Description |
Required |
ClientID |
- Client identifier to get net open position report for
- Type: Long
- Default: None
- Constraints: Must be valid client Id and accessible by logged in dealer
|
Yes |
AccountType |
- Type of account that wants to get account status report for
- Type: Long
- Default: none
- Can be one of the following :
1: Normal Account
2: Coverage Account
|
Yes |
SymbolID |
- The report will show the transaction for this symbol ID
- Type: Long
- Default: None
- 0: means for all Symbol
|
Yes |
PositionType |
- The report will show the net open position details for this type
- Type: Long
- Default: None
- Can be one of the following
0: all
1: Buy type
-1: sell type
|
Yes |
|
|
|
Response Elements
Name |
Description |
Result |
The operation returns a list of type NetPositionReport, otherwise, an explicit error code is returned if ClientID is less than 0.
The Following are the NetPositionReportdata member
- ClientID :Client Identifier
- AccountID :Account Identifier
- BuySell:Balance value
- Amount:1 : means buy type
-1: means Sell Type
- SymbolID: net open position Symbol Id
- AvgPrice: average open price
- SymbolName :net open position symbol name
|
See Also
VertexFX BackOffice WCF Service Index