def __init__(self, **kwargs):
        """
        Create a new TakeProfitDetails instance
        """
        super(TakeProfitDetails, self).__init__()
 
        #
        # The price that the Take Profit Order will be triggered at. Only one
        # of the price and distance fields may be specified.
        #
        self.price = kwargs.get("price")
 
        #
        # The time in force for the created Take Profit Order. This may only be
        # GTC, GTD or GFD.
        #
        self.timeInForce = kwargs.get("timeInForce", "GTC")
 
        #
        # The date when the Take Profit Order will be cancelled on if
        # timeInForce is GTD.
        #
        self.gtdTime = kwargs.get("gtdTime")
 
        #
        # The Client Extensions to add to the Take Profit Order when created.
        #
        self.clientExtensions = kwargs.get("clientExtensions")
def __init__ ( self , ** kwargs ) : super ( TakeProfitDetails , self ) . __init__ ( ) self . price = kwargs . get ( "price" ) self . timeInForce = kwargs . get ( "timeInForce" , "GTC" ) self . gtdTime = kwargs . get ( "gtdTime" ) self . clientExtensions = kwargs . get ( "clientExtensions" )
Create a new TakeProfitDetails instance