def modifyStopOrder(self, orderId, parentId, newStop, quantity,
                        transmit=True, account=None):
        """ modify stop order """
        if orderId in self.orders.keys():
            order = self.createStopOrder(
                quantity = quantity,
                parentId = parentId,
                stop     = newStop,
                trail    = False,
                transmit = transmit,
                account  = account
            )
            return self.placeOrder(self.orders[orderId]['contract'], order, orderId)

        return None
def modifyStopOrder ( self , orderId , parentId , newStop , quantity , transmit = True , account = None ) : if orderId in self . orders . keys ( ) : order = self . createStopOrder ( quantity = quantity , parentId = parentId , stop = newStop , trail = False , transmit = transmit , account = account ) return self . placeOrder ( self . orders [ orderId ] [ 'contract' ] , order , orderId ) return None
modify stop order