From eb6e8940bb0e014fc0799f5904f52fb5c6f84f20 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期一, 15 九月 2025 13:40:01 +0800 Subject: [PATCH] bug修复 --- cancel_strategy/s_l_h_cancel_strategy.py | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cancel_strategy/s_l_h_cancel_strategy.py b/cancel_strategy/s_l_h_cancel_strategy.py index 77deebb..5bb4271 100644 --- a/cancel_strategy/s_l_h_cancel_strategy.py +++ b/cancel_strategy/s_l_h_cancel_strategy.py @@ -2349,14 +2349,14 @@ if human_rate and human_rate >= 0.7: return False, "浜轰负璁剧疆鎾ゅ崟姣斾緥澶т簬0.7" - volume_rate = code_volumn_manager.CodeVolumeManager().get_volume_rate(code) - if volume_rate <= 0.4 and tool.trade_time_sub(time_str, total_datas[place_order_index]['val']['time']) <= 6: - return True, f"閲忔瘮({volume_rate})<=40%涓斿湪鎸傚崟6s鍐咃紝灏佸崟棰濃墹4000涓�" + # volume_rate = code_volumn_manager.CodeVolumeManager().get_volume_rate(code) + # if volume_rate <= 0.4 and tool.trade_time_sub(time_str, total_datas[place_order_index]['val']['time']) <= 6: + # return True, f"閲忔瘮({volume_rate})<=40%涓斿湪鎸傚崟6s鍐咃紝灏佸崟棰濃墹4000涓�" - if 6 < tool.trade_time_sub(time_str, total_datas[place_order_index]['val']['time']): - return True, f"涓嬪崟鍚�6s锛屽皝鍗曢鈮�4000涓�" + # if 6 < tool.trade_time_sub(time_str, total_datas[place_order_index]['val']['time']): + return True, f"涓嬪崟鍚庯紝灏佸崟棰濃墹4000涓�" - return False, '鏃犳挙鍗曟潯浠�' + # return False, '鏃犳挙鍗曟潯浠�' if __name__ == "__main__": -- Gitblit v1.8.0