def isBuy(self):
        return self.__action in [Order.Action.BUY, Order.Action.BUY_TO_COVER]

    # Returns True if this is a SELL or SELL_SHORT order.
dataset/ETHPy150Open gbeced/pyalgotrade/pyalgotrade/broker/__init__.py/Order.isBuy/original