'Return whether this trade proposal has an acceptable price.
:rtype: bool'

def has_acceptable_price(self, is_ask, order_price):

    return ((is_ask and (self.price >= order_price)) or ((not is_ask) and (self.price <= order_price)))
