def triggered(self):
        """
        For a market order, True.
        For a stop order, True IFF stop_reached.
        For a limit order, True IFF limit_reached.
        """
        if self.stop is not None and not self.stop_reached:
            return False

        if self.limit is not None and not self.limit_reached:
            return False

        return True
def triggered ( self ) : if self . stop is not None and not self . stop_reached : return False if self . limit is not None and not self . limit_reached : return False return True
For a market order, True.
        For a stop order, True IFF stop_reached.
        For a limit order, True IFF limit_reached.