'Release all quantity for a specific tick.
:param order_id: The order id from another peer that the quantity needs to be released for
:type order_id: OrderId
:raises TickWasNotReserved: Thrown when the tick was not reserved first'

def release_quantity_for_tick(self, order_id, quantity):

    if (order_id not in self._reserved_ticks):
        raise TickWasNotReserved()
    if (self._reserved_quantity >= quantity):
        self._reserved_quantity -= quantity
        self._reserved_ticks[order_id] -= quantity
        assert (self.available_quantity >= Quantity(0, self._quantity.wallet_id)), str(self.available_quantity)
        if (self._reserved_ticks[order_id] == Quantity(0, quantity.wallet_id)):
            del self._reserved_ticks[order_id]
    else:
        raise ValueError(('Not    enough    reserved    quantity    for    order    id    %s' % order_id))
    self._logger.debug('Released    quantity    for    order    id    %s    (own    order    id:    %s),total    quantity:    %s,    traded    quantity:    %s,    reserved    quantity:    %s', str(order_id), str(self.order_id), self.total_quantity, self.traded_quantity, self.reserved_quantity)
