Syntax
Public Function GetOpenTrades(AccountID As Long) As String
Description
The GetOpenTrades operation is used to get Open Trades that are related to a given account number.
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