def iter_list_market_profit_and_loss(<EOL>self, market_ids, chunk_size, **kwargs):
return itertools.chain(*(<EOL>self.list_market_profit_and_loss(market_chunk, **kwargs)<EOL>for market_chunk in utils.get_chunks(market_ids, chunk_size)<EOL>))<EOL>
Split call to `list_market_profit_and_loss` into separate requests.

        :param list market_ids: List of market IDs
        :param int chunk_size: Number of records per chunk
        :param dict kwargs: Arguments passed to `list_market_profit_and_loss`