From 7eb1a8ed1a007d80de41d131071ee38f5872700c Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期五, 07 二月 2025 14:26:37 +0800 Subject: [PATCH] 辨识度票策略修改/恢复P撤/上传订阅涨幅 --- l2/l2_data_manager_new.py | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/l2/l2_data_manager_new.py b/l2/l2_data_manager_new.py index 594b9a4..15c035a 100644 --- a/l2/l2_data_manager_new.py +++ b/l2/l2_data_manager_new.py @@ -816,11 +816,11 @@ average_rate = cls.__Buy1PriceManager.get_average_rate(code) if average_rate : if tool.is_ge_code(code): - if average_rate <= 0.07: - return False, True, f"鍧囦环娑ㄥ箙({average_rate})灏忎簬7%", True + if average_rate <= 0.1: + return False, True, f"鍧囦环娑ㄥ箙({average_rate})灏忎簬10%", True else: - if average_rate <= 0.03: - return False, True, f"鍧囦环娑ㄥ箙({average_rate})灏忎簬3%", True + if average_rate <= 0.05: + return False, True, f"鍧囦环娑ㄥ箙({average_rate})灏忎簬5%", True return True, False, f"", False @classmethod @@ -1307,13 +1307,13 @@ # 鏄惁鏄氦鏄撻槦鍒楄Е鍙� # 鎵叆涓嬪崟鍙湁L鎾よ兘鎾ゅ崟 if order_begin_pos and order_begin_pos.mode == OrderBeginPosInfo.MODE_RADICAL and cancel_type not in { - trade_constant.CANCEL_TYPE_L_DOWN, trade_constant.CANCEL_TYPE_L, trade_constant.CANCEL_TYPE_RD}: + trade_constant.CANCEL_TYPE_L_DOWN, trade_constant.CANCEL_TYPE_L, trade_constant.CANCEL_TYPE_RD, trade_constant.CANCEL_TYPE_P}: l2_log.cancel_debug(code, "鎾ゅ崟涓柇锛屽師鍥狅細{}", "鎵叆涓嬪崟涓嶆槸L鎾�") return False # 鍔犵豢鍙湁L鎾�/浜烘挙鐢熸晥 if gpcode_manager.GreenListCodeManager().is_in_cache(code): if cancel_type not in {trade_constant.CANCEL_TYPE_L, trade_constant.CANCEL_TYPE_L_UP, - trade_constant.CANCEL_TYPE_L_DOWN, trade_constant.CANCEL_TYPE_RD}: + trade_constant.CANCEL_TYPE_L_DOWN, trade_constant.CANCEL_TYPE_RD, trade_constant.CANCEL_TYPE_P}: l2_log.cancel_debug(code, "鎾ゅ崟涓柇锛屽師鍥狅細{}", "鍔犵豢涓嶆槸L鎾�") return False -- Gitblit v1.8.0