diff --git a/client/python/upbit/models.py b/client/python/upbit/models.py index 325e0dd..8e08115 100644 --- a/client/python/upbit/models.py +++ b/client/python/upbit/models.py @@ -523,12 +523,18 @@ def Order_cancel(self, **kwargs) -> dict: future = self.__client.Order.Order_cancel(**kwargs) return HTTPFutureExtractor.future_extraction(future) - def Order_cancel_all(self) -> dict: - result = [] + def Order_cancel_all(self, side: str = None) -> dict: + args = { + "state": "wait" + } + if side: + args["side"] = side + + result = [] while True: waits = HTTPFutureExtractor.future_extraction( - self.__client.Order.Order_info_all(state="wait") + self.__client.Order.Order_info_all(**args) )["result"] if len(waits) == 0: