Syntax
Public Function GetOpenPositions (AccountID As Long) As String
Description
The GetOpenPositions operation is used to return a List (of Position(s)) that holds a given account open positions.
Request Parameters
Name | Description | Required |
AccountId |
|
Yes |
Response Elements
Name | Description |
PositionOperationType | This operation returns a Composite JSON object of type OpenPositions. In case of success. The following are the OpenPositions Data member: Position Operation Type 1 Buy -1 Sell 2 Buy Stop -2 Sell Stop |
SLTPOrders | SLTP Orders For this position (List Of Type Managed Order) – OrderID: Order ID – Amount: Order Amount – StopLoss: Stop Loss Price – TakeProfit: Take Profit Price – DateTime: Order Date Time – AccountID: Order Account ID – OrderOperation: Order Operation Type As String – PositionTicketID: Position Ticket ID |
TicketID | Position Ticket ID |
AccountID | Position Account ID |
BuySell | Position Operation Type As String (Buy, Sell, Buy Stop, Sell Stop) . |
ProfitLoss | Position Profit Loss |
Commission | Position Commission |
DateTimeĀ | Position Date Time |
SymbolId | Symbol Id |
Amount | Amount |
Open Price | Position Open Price |
CurrentPriceĀ | Position Current PriceĀ |
Interest | Position Interest |
Comments | Position Comments |
SymbolName | Symbol Name |
See Also