'Abort a specific transaction by releasing all reserved quantity for this order.'

def abort_transaction(self, transaction):

    self._logger.error('Aborting    transaction    %s', transaction.transaction_id)
    order = self.order_manager.order_repository.find_by_id(transaction.order_id)
    order.release_quantity_for_tick(transaction.partner_order_id, (transaction.total_quantity - transaction.transferred_quantity))
    self.order_manager.order_repository.update(order)
    self.update_ticks(transaction, Timestamp.now())
