class PositionsSummary

Parents

object

Brief

The class provides access to summary information about all open positions in one instrument

Public Methods

getAmount

Gets the amount of all positions, both long and short, (abs(S amount - B amount))

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

getBuyGrossPL

Gets the current profit or loss of all 'buy' positions (both long and short) in the account currency

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

getDividends

Gets the amount of dividends earned or paid for all positions

getGrossPL

Gets the current profit or loss of all positions (both long and short) in the account currency

getInstrument

Gets the symbol of the instrument. For example, EUR/USD

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

getOfferId

Gets the unique identification number of the instrument offer

getRolloverInterest

Gets the amount of rollover interest received or paid for all 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

getSellGrossPL

Gets the current profit or loss of all 'sell' positions (both long and short) in the account currency

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

getSortOrder

Gets the default sort order position

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

back