From 0e642d0c27e40df326733401be6f8c8115e54911 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期三, 23 七月 2025 17:01:25 +0800
Subject: [PATCH] L后默认撤单率修改/启用F撤

---
 l2/l2_data_manager_new.py |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/l2/l2_data_manager_new.py b/l2/l2_data_manager_new.py
index 4e09c6e..d354a6b 100644
--- a/l2/l2_data_manager_new.py
+++ b/l2/l2_data_manager_new.py
@@ -862,7 +862,7 @@
                 cls.__process_not_order(code, cancel_data["index"] + 1, end_index, capture_time, is_first_code)
             finally:
                 l2_log.debug(code, "瑙﹀彂鎾ゅ崟锛屾挙鍗曚綅缃細{} 锛屾挙鍗曞師鍥狅細{}, 涓嬪崟妯″紡锛歿}", cancel_data["index"], cancel_msg,
-                         f"{order_begin_pos.mode}")
+                             f"{order_begin_pos.mode}")
         else:
             pass
 
@@ -1064,7 +1064,8 @@
                                                                  order_begin_pos.buy_exec_index,
                                                                  local_today_datas.get(code))
                         return False
-                    l2_log.debug(code, "鍙互涓嬪崟锛屽師鍥狅細{}锛� 涓嬪崟妯″紡锛歿} 鏈�灏忚鍗曞彿锛歿}", reason, order_begin_pos.mode, order_begin_pos.min_order_no)
+                    l2_log.debug(code, "鍙互涓嬪崟锛屽師鍥狅細{}锛� 涓嬪崟妯″紡锛歿} 鏈�灏忚鍗曞彿锛歿}", reason, order_begin_pos.mode,
+                                 order_begin_pos.min_order_no)
                     l2_log.debug(code, "寮�濮嬫墽琛屼拱鍏�")
                     trade_manager.start_buy(code, capture_timestamp, last_data,
                                             last_data_index, order_begin_pos.mode, order_begin_pos.buy_exec_index)
@@ -1405,14 +1406,14 @@
             # 鎵叆涓嬪崟鍙湁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_P}:
+                trade_constant.CANCEL_TYPE_P, trade_constant.CANCEL_TYPE_F}:
                 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_P}:
+                                       trade_constant.CANCEL_TYPE_P, trade_constant.CANCEL_TYPE_F}:
                     l2_log.cancel_debug(code, "鎾ゅ崟涓柇锛屽師鍥狅細{}", "鍔犵豢涓嶆槸L鎾�")
                     return False
 

--
Gitblit v1.8.0