def __init__(self, type_, action, instrument, quantity, instrumentTraits):
        if quantity <= 0:
            raise Exception("Invalid quantity")
        self.__id = None
        self.__type = type_
        self.__action = action
        self.__instrument = instrument
        self.__quantity = quantity
        self.__instrumentTraits = instrumentTraits
        self.__filled = 0
        self.__avgFillPrice = None
        self.__executionInfo = None
        self.__goodTillCanceled = False
        self.__commissions = 0
        self.__allOrNone = False
        self.__state = Order.State.INITIAL
        self.__submitDateTime = None

    # This is to check that orders are not compared directly. order ids should be compared.
#    def __eq__(self, other):
#        if other is None:
#            return False
#        assert(False)

    # This is to check that orders are not compared directly. order ids should be compared.
#    def __ne__(self, other):
#        if other is None:
#            return True
#        assert(False)
dataset/ETHPy150Open gbeced/pyalgotrade/pyalgotrade/broker/__init__.py/Order.__init__/original