From b973d8fbd2d57f3b67f34601b2215f5da581982d Mon Sep 17 00:00:00 2001 From: admin <admin@example.com> Date: 星期一, 14 四月 2025 18:45:46 +0800 Subject: [PATCH] 修改当日BUG --- strategy/order_methods.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/strategy/order_methods.py b/strategy/order_methods.py index 2c0a997..550774f 100644 --- a/strategy/order_methods.py +++ b/strategy/order_methods.py @@ -25,9 +25,10 @@ # 鏆傚仠鑷姩涔� logger.info(f"鍦ㄤ氦鏄撴柟娉曞嚱鏁板 鍏抽棴浜� 鑷姩涔�") return + # 闄愬埗浜ゆ槗鏍囩殑鐨勫崟浠疯寖鍥� if current_price < 3 or current_price > 30: # 褰撳墠鍗曚环瓒呭嚭棰勮闄愬埗 - logger.info(f"褰撳墠鏍囩殑涓偂{sec_name}鍗曚环瓒呭嚭棰勮闄愬埗锛侀璁惧��3 < current_price < 30,褰撳墠鏈�鏂颁环{current_price}") + logger.info(f"褰撳墠鏍囩殑涓偂銆恵sec_name}銆戝崟浠疯秴鍑洪璁鹃檺鍒讹紒棰勮鍊�3 < current_price < 30,褰撳墠鏈�鏂颁环{current_price}") return price = round(float(current_price), 2) volume = (int(buy_order_value / price) // 100) * 100 -- Gitblit v1.8.0