Syntax
GetOpenPositions_stmt(AccountId As Long,FromDate As String ,ToDate As String )
Description
The GetOpenPositions_stmt operation is used to return a list of positions which contains a given account open positions between a given starting date and ending date.
Request Parameters
Name |
Description |
Required |
AccountId |
- The intended account identifier.
- Type: Long.
- Default: None.
- Constraints: Must be a valid account ID and accessible by logged in client.
|
Yes |
FromDate |
- Starting date for account open positions query.
- Type: String.
- Default: 01/01/1970
- Constraints: Must be in DD/MM/YYYY format.
|
No |
ToDate |
- Ending date for account open positions query.
- Type: String.
- Default: System date.
- Constraints: Must be in DD/MM/YYYY format.
|
No |
Response Elements
Name |
Description |
Result |
This operation returns a given account open positions upon success as List(of type position). The following are the Position’s Data members:
- ClosePrice: Close position price.
- ProfitLoss: Profit or loss value.
- PositionValue: Position value.
- Commission: Commission value.
- Interest: Position Interest value.
- OpenPrice: Position open price.
- ManagedTKTID: Manage Order number.
- CurrentPrice: Current Price.
- Symbol: Symbol ID.
- SL: Stop loss value.
- TP: Take profit value.
- SymbolName: Symbol name.
- BuySell:
1: Which means Buy type. -1: Which means Sell type.
- RefPrice: Reference symbol price.
- Note: Position note.
- delItems: Deliver Items.
- ID: Ticket ID.
- Time: Position opened time.
- Amount: Position amount.
- IsFreezed: Detected if the open position is freezed or not
Otherwise an expliciterror codeis returned.
Type: JSON object as List (of Position)
|
Sample
GetOpenPositions_stmt
Loading ...
See Also
VertexFX WCF Service Index