From 7a1abc7b72691ccddbedafd45cfaf09627ff80ce Mon Sep 17 00:00:00 2001 From: 21in7 Date: Mon, 2 Mar 2026 13:24:27 +0900 Subject: [PATCH] chore: update python-binance dependency and improve error handling in BinanceFuturesClient - Changed python-binance version requirement from 1.0.19 to >=1.0.28 for better compatibility and features. - Modified exception handling in the cancel_all_orders method to catch all exceptions instead of just BinanceAPIException, enhancing robustness. --- requirements.txt | 2 +- src/exchange.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 6011d22..db65f2d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -python-binance==1.0.19 +python-binance>=1.0.28 pandas>=2.3.2 pandas-ta==0.4.71b0 python-dotenv==1.0.0 diff --git a/src/exchange.py b/src/exchange.py index d447739..37fe003 100644 --- a/src/exchange.py +++ b/src/exchange.py @@ -144,5 +144,5 @@ class BinanceFuturesClient: symbol=self.config.symbol ), ) - except BinanceAPIException as e: + except Exception as e: logger.warning(f"Algo 주문 전체 취소 실패 (무시): {e}")