class PositionsSummary
Parents
object
Brief
The class provides access to summary information about all open positions in one instrument
| Public Methods | |
|---|---|
| getInstrument | Gets the symbol of the instrument. For example, EUR/USD |
| getOfferId | Gets the unique identification number of the instrument offer |
| getSellNetPL | Gets the current profit/loss of all short (sell) positions in the account currency. It includes commissions, interest, and dividends |
| getSellPipPL | Gets the current profit/loss of all short (sell) positions in pips |
| getSellUsedMr | Gets the amount of used margin currently allocated to maintain all short (sell) positions |
| getSellAmount | Gets the cumulative amount of all short (sell) positions |
| getSellAvgOpen | Gets the average open price of all short (sell) positions |
| getSellClose | Gets the current sell (bid) price for your long (buy) positions |
| getBuyNetPL | Gets the current profit/loss of all long (buy) positions in the account currency. It includes commissions, interest, and dividends |
| getBuyPipPL | Gets the current profit/loss of all long (buy) positions in pips |
| getBuyUsedMr | Gets the amount of used margin currently allocated to maintain all buy (long) positions |
| getBuyAmount | Gets the cumulative amount of all long (buy) positions |
| getBuyAvgOpen | Gets the average open price of all long (buy) positions |
| getBuyClose | Gets the current buy (long) price for your short (sell) positions |
| getAmount | Gets the amount of all positions, both long and short, (abs(S amount - B amount)) |
| getGrossPL | Gets the current profit or loss of all positions (both long and short) in the account currency |
| getBuyGrossPL | Gets the current profit or loss of all 'buy' positions (both long and short) in the account currency |
| getSellGrossPL | Gets the current profit or loss of all 'sell' positions (both long and short) in the account currency |
| getRolloverInterest | Gets the amount of rollover interest received or paid for all positions |
| getNetPL | Gets the profit or loss of all positions (both long and short) in the account currency. It includes commissions, interest, and dividends |
| getNumberOfPositions | Gets the number of positions in this instrument |
| getSortOrder | Gets the default sort order position |
| getDividends | Gets the amount of dividends earned or paid for all positions |
| PositionsSummary | This method is a constructor for the class provides access to summary information about all open positions in one instrument. It initializes the properties with default values and does not return any values |