':param order_id: The order id from another peer that the quantity needs to be reserved for
:param quantity: The quantity to reserve
:type order_id: OrderId
:type quantity: Quantity
:return: True if the quantity was reserved, False otherwise
:rtype: bool'

def reserve_quantity_for_tick(self, order_id, quantity):

    assert isinstance(order_id, OrderId), type(order_id)
    assert isinstance(quantity, Quantity), type(quantity)
    if (self.available_quantity >= quantity):
        self._reserved_quantity += quantity
        if (order_id not in self._reserved_ticks):
            self._reserved_ticks[order_id] = quantity
        else:
            self._reserved_ticks[order_id] += quantity
    else:
        raise ValueError('Tick    does    not    have    enough    available    quantity    for    reservation')
    self._logger.debug('reserved    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)
