From 195d28b63b4fa01e7ef9fb011a9d2fe5fef8c6e4 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期五, 15 八月 2025 11:03:28 +0800 Subject: [PATCH] L后去除最大单/bug修复 --- cancel_strategy/s_l_h_cancel_strategy.py | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/cancel_strategy/s_l_h_cancel_strategy.py b/cancel_strategy/s_l_h_cancel_strategy.py index 6ec68ab..10e5c3c 100644 --- a/cancel_strategy/s_l_h_cancel_strategy.py +++ b/cancel_strategy/s_l_h_cancel_strategy.py @@ -1747,15 +1747,15 @@ rate = round(canceled_num / total_num, 3) # 闄ゅ紑鏈�澶у崟鐨勫奖鍝嶆潈閲� - if not must_buy: - temp_thresh_hold_rate = round((total_num - max_num * max_num_count) * 0.8 / total_num, 2) - if thresh_hold_rate > temp_thresh_hold_rate: - if cancel_rate_info and cancel_rate_info[1] > 0: - pass - else: - # 娌℃湁浜轰负璁剧疆 - # 鐩爣鎾ゅ崟姣斾緥澶т簬澶у崟鎾ゅ崟姣斾緥灏卞彇姣斾緥鍧囧�� - thresh_hold_rate = round((thresh_hold_rate + temp_thresh_hold_rate) / 2, 2) + # if not must_buy: + # temp_thresh_hold_rate = round((total_num - max_num * max_num_count) * 0.8 / total_num, 2) + # if thresh_hold_rate > temp_thresh_hold_rate: + # if cancel_rate_info and cancel_rate_info[1] > 0: + # pass + # else: + # # 娌℃湁浜轰负璁剧疆 + # # 鐩爣鎾ゅ崟姣斾緥澶т簬澶у崟鎾ゅ崟姣斾緥灏卞彇姣斾緥鍧囧�� + # thresh_hold_rate = round((thresh_hold_rate + temp_thresh_hold_rate) / 2, 2) real_place_order_info = self.__real_place_order_index_dict.get(code) is_default_place_order_index = real_place_order_info[1] if real_place_order_info else False -- Gitblit v1.8.0