def METHOD_NAME(self, *, market_id: str, bid_trade: "Trade"):
    """Method triggered by the MarketEvent.BID_TRADED event."""
    market = [market
              for market in self.area.forward_markets.values()
              if market_id == market.id]
    if not market:
        return
    if bid_trade.buyer.uuid != self.owner.uuid:
        return
    self._energy_params.event_traded_energy(bid_trade.traded_energy,
                                            bid_trade.time_slot, market[0].market_type)
    self._energy_params.decrement_posted_energy(
        bid_trade.time_slot, bid_trade.traded_energy, market[0].market_type)