def exitPosition(self, position, stopPrice=None, limitPrice=None, goodTillCanceled=None): # Deprecated since v0.13 warninghelpers.deprecation_warning( "exitPosition will be deprecated in the next version. Please use the exit method in the position class instead.", stacklevel=2, ) position.exit(limitPrice, stopPrice, goodTillCanceled)
def exitPosition(self, position, stopPrice=None, limitPrice=None, goodTillCanceled=None): # Deprecated since v0.13 warninghelpers.deprecation_warning( "exitPosition will be deprecated in the next version. Please use the exit method in the position class instead.", stacklevel=2) position.exit(limitPrice, stopPrice, goodTillCanceled)