listMarketProfitAndLoss

Ā 

listMarketProfitAndLoss

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 request.Ā 
Please note:Ā Ā Market Data Request LimitsĀ apply to requests made toĀ listMarketProfitAndLoss

Parameter name

Type

Required

Description

marketIds

Set<MarketId>

List of markets to calculate profit and loss

includeSettledBets

boolean

Ā 

Option to include settled bets (partially settled markets only). Defaults to false if not specified.

includeBspBets

boolean

Ā 

Option to include BSP bets. Defaults to false if not specified.

netOfCommission

boolean

Ā 

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.

Return type

Description

List<MarketProfitAndLoss>

Ā 

Throws

Description

APINGException

Generic exception that is thrown if this operation fails for any reason.

Since 1.0.0