'Submits a market order to close this position.
:param goodTillCanceled: True if the exit order is good till canceled. If False then the order gets automatically canceled when the session closes. If None, then it will match the entry order.
:type goodTillCanceled: boolean.
.. note::
* If the position is closed (entry canceled or exit filled) this won\'t have any effect.
* If the exit order for this position is pending, an exception will be raised. The exit order should be canceled first.
* If the entry order is active, cancellation will be requested.'

def exitMarket(self, goodTillCanceled=None):

    self.__state.exit(self, None, None, goodTillCanceled)
