示例#1
0
 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)
示例#2
0
 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)