Syntax
Function GetClosedTrades(AccountID As Long) As String
Description
The GetClientsIDs operation is used to get the list of Closed Trades that are related to a given Account Identifier.
Request Parameters
Name | Description | Required |
AccountID |
|
Yes |
Response Elements
Name | Description |
TradeOperationType | This operation returns a Composite JSON object of the type ClosedTrade. In case of success. The following are the ClosedTrade Data member:Trade Operation Type 1 Buy -1 Sell 2 Buy Stop -2 Sell Stop |
OpenTicket | Ticket ID |
AccountID | Account ID |
BuySell | Trade Operation As String (Buy, Sell, Buy Stop, Sell Stop) |
Commission | Commission |
OpenDateTime | Open Time for the trade |
CloseDateTime | Close Time for the trade |
SymbolID | Symbol ID |
SymbolName | Symbol Name |
Amount | Trade Amount |
OpenPrice | Trade Open Price |
ClosePrice | Trade Close Price |
CloseTicket | Close Ticket ID |
Interest | Trade Interest |
TakeProfit | Take Profit Price |
StopLoss | Stop Loss PriceĀ |
Comment | Comment |
See Also