'Sets if the order should be good till canceled.
Orders that are not filled by the time the session closes will be will be automatically canceled
if they were not set as good till canceled
:param goodTillCanceled: True if the order should be good till canceled.
:type goodTillCanceled: boolean.
.. note:: This can\'t be changed once the order is submitted.'

def setGoodTillCanceled(self, goodTillCanceled):

    if (self.__state != Order.State.INITIAL):
        raise Exception('The    order    has    already    been    submitted')
    self.__goodTillCanceled = goodTillCanceled
