def METHOD_NAME(self, *, market_id, bid_trade):
    if bid_trade.match_details.get("offer"):
        return
    market = self.get_market_from_market_id(market_id)
    if market is None:
        return
    self._calculate_and_buy_balancing_energy(market, bid_trade)
    super().METHOD_NAME(market_id=market_id, bid_trade=bid_trade)