def __init__(self, **kwargs):
        """
        Create a new TrailingStopLossDetails instance
        """
        super(TrailingStopLossDetails, self).__init__()
 
        #
        # The distance (in price units) from the Trade's fill price that the
        # Trailing Stop Loss Order will be triggered at.
        #
        self.distance = kwargs.get("distance")
 
        #
        # The time in force for the created Trailing Stop Loss Order. This may
        # only be GTC, GTD or GFD.
        #
        self.timeInForce = kwargs.get("timeInForce", "GTC")
 
        #
        # The date when the Trailing Stop Loss Order will be cancelled on if
        # timeInForce is GTD.
        #
        self.gtdTime = kwargs.get("gtdTime")
 
        #
        # The Client Extensions to add to the Trailing Stop Loss Order when
        # created.
        #
        self.clientExtensions = kwargs.get("clientExtensions")
def __init__ ( self , ** kwargs ) : super ( TrailingStopLossDetails , self ) . __init__ ( ) self . distance = kwargs . get ( "distance" ) self . timeInForce = kwargs . get ( "timeInForce" , "GTC" ) self . gtdTime = kwargs . get ( "gtdTime" ) self . clientExtensions = kwargs . get ( "clientExtensions" )
Create a new TrailingStopLossDetails instance