From 0faba88495927bd904053c9c8ca4d9561b4c86e2 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期五, 15 八月 2025 13:58:16 +0800 Subject: [PATCH] 已撤比例最大为100% --- cancel_strategy/s_l_h_cancel_strategy.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/cancel_strategy/s_l_h_cancel_strategy.py b/cancel_strategy/s_l_h_cancel_strategy.py index 10e5c3c..04c21d8 100644 --- a/cancel_strategy/s_l_h_cancel_strategy.py +++ b/cancel_strategy/s_l_h_cancel_strategy.py @@ -1745,7 +1745,8 @@ # return True, total_data[-1] rate = round(canceled_num / total_num, 3) - + if rate > 1: + rate = 1 # 闄ゅ紑鏈�澶у崟鐨勫奖鍝嶆潈閲� # if not must_buy: # temp_thresh_hold_rate = round((total_num - max_num * max_num_count) * 0.8 / total_num, 2) -- Gitblit v1.8.0