def METHOD_NAME(
    self, proposed_order: instrumentOrder
) -> instrumentOrder:
    """
    Apply an override to a trade
    :param strategy_name: str
    :param instrument_code: str
    :return: int, updated position
    """
    diag_overrides = diagOverrides(self.data)
    diag_positions = diagPositions(self.data)
    instrument_strategy = proposed_order.instrument_strategy
    original_position = diag_positions.get_current_position_for_instrument_strategy(
        instrument_strategy
    )
    override = diag_overrides.get_cumulative_override_for_instrument_strategy(
        instrument_strategy
    )
    revised_order = override.apply_override(original_position, proposed_order)
    if revised_order.trade != proposed_order.trade:
        log = proposed_order.log_with_attributes(self.log)
        log.debug(
            "%s trade change from %s to %s because of override %s"
            % (
                instrument_strategy.key,
                str(revised_order.trade),
                str(proposed_order.trade),
                str(override),
            )
        )
    return revised_order