From 02166225b34a7ec2c41dc8eda77c431465b8d9dd Mon Sep 17 00:00:00 2001 From: admin <admin@example.com> Date: 星期一, 24 三月 2025 13:55:50 +0800 Subject: [PATCH] bug修改 --- strategy/order_methods.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/strategy/order_methods.py b/strategy/order_methods.py index 5388bd6..6a9a1b0 100644 --- a/strategy/order_methods.py +++ b/strategy/order_methods.py @@ -25,7 +25,10 @@ # 鏆傚仠鑷姩涔� logger.info(f"鍦ㄤ氦鏄撴柟娉曞嚱鏁板 鍏抽棴浜� 鑷姩涔�") return - + if current_price < 3 or current_price > 50: + # 褰撳墠鍗曚环瓒呭嚭棰勮闄愬埗 + logger.info(f"褰撳墠鏍囩殑涓偂{sec_name}鍗曚环瓒呭嚭棰勮闄愬埗锛侀璁惧��3 < current_price < 50,褰撳墠鏈�鏂颁环{current_price}") + return price = round(float(current_price), 2) volume = (int(buy_order_value / price) // 100) * 100 if volume < 100: -- Gitblit v1.8.0