def METHOD_NAME(self, order: instrumentOrder):
    log = order.log_with_attributes(self.log)
    try:
        order_id = self.order_stack.put_order_on_stack(order)
    except zeroOrderException:
        # we checked for zero already, which means that there is an existing order on the stack
        # An existing order of the same size
        log.warning(
            "Ignoring new order as either zero size or it replicates an existing order on the stack"
        )
    else:
        log.debug(
            "Added order %s to instrument order stack with order id %d"
            % (str(order), order_id),
            instrument_order_id=order_id,
        )