From 3da5d1ef00cf7665c2d37f837e6845c92d22e31c Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期五, 15 十二月 2023 16:02:08 +0800 Subject: [PATCH] 前日炸板策略修改 --- l2/l2_data_manager_new.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/l2/l2_data_manager_new.py b/l2/l2_data_manager_new.py index 174ced4..3bce2ae 100644 --- a/l2/l2_data_manager_new.py +++ b/l2/l2_data_manager_new.py @@ -976,6 +976,12 @@ k_format = code_nature_analyse.CodeNatureRecordManager().get_k_format_cache(code) now_timestamp = int(tool.get_now_time_str().replace(":", "")) + + # 鍓嶄竴澶╃偢鏉夸箣鍚庯紝浠婃棩10:00涔嬪墠鎵嶈兘涓嬪崟 + if k_format and len(k_format) >= 11 and k_format[10]: + if now_timestamp > int("100000"): + return False, True, f"涓婁釜浜ゆ槗鏃ョ偢鏉�,褰撴棩閲�10鐐逛互鍚庝笉涓嬪崟" + if can_buy_result[3] and now_timestamp <= int("094000"): # 寮哄娍涓荤嚎涓庡己鍔�10鍒嗛挓涓嶇湅閲� pass -- Gitblit v1.8.0