code: def list_market_profit_and_loss(
              self, market_ids, include_settled_bets=False,
              include_bsp_bets=None, net_of_commission=None):
          
          return self.make_api_request(
              'Sports',
              'listMarketProfitAndLoss',
              utils.get_kwargs(locals()),
              model=models.MarketProfitAndLoss,
          )
docs: Retrieve profit and loss for a given list of markets.
  
          :param list market_ids: List of markets to calculate profit and loss
          :param bool include_settled_bets: Option to include settled bets
          :param bool include_bsp_bets: Option to include BSP bets
          :param bool net_of_commission: Option to return profit and loss net of
              users current commission rate for this market including any special
              tariffs