List<MarketProfitAndLoss> listMarketProfitAndLoss ( Set<MarketId> marketIds, boolean includeSettledBets, boolean includeBspBets, boolean netOfCommission ) throws APINGException
Retrieve profit and loss for a given list of OPEN markets. The values are calculated using matched bets and optionally settled bets. Only odds (MarketBettingType = ODDS) markets are implemented, markets of other types are silently ignored.
To retrieve your profit and loss for CLOSED markets, please use the listClearedOrders
Please note: Market Data Request Limits apply to requests made to listMarketProfitAndLoss
List of markets to calculate profit and loss
Option to include settled bets (partially settled markets only). Defaults to false if not specified.
Option to include BSP bets. Defaults to false if not specified.
Option to return profit and loss net of users current commission rate for this market including any special tariffs. Defaults to false if not specified.
Generic exception that is thrown if this operation fails for any reason.