From 3da6b577db3dcec38a3a3ed6a6230d0598ca072a Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期一, 04 十一月 2024 15:28:42 +0800
Subject: [PATCH] 触发扫入的成交比例阈值修改

---
 code_attribute/first_target_code_data_processor.py |    3 ++-
 l2/l2_data_manager_new.py                          |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/code_attribute/first_target_code_data_processor.py b/code_attribute/first_target_code_data_processor.py
index 0eda660..5d7369b 100644
--- a/code_attribute/first_target_code_data_processor.py
+++ b/code_attribute/first_target_code_data_processor.py
@@ -130,7 +130,8 @@
 
                 # 鏄惁鍏锋湁杈ㄨ瘑搴�
                 is_special = True if k_format and k_format[8][0] else False
-                if not WantBuyCodesManager().is_in_cache(code):
+                if not WantBuyCodesManager().is_in_cache(code) and not gpcode_manager.BuyOpenLimitUpCodeManager().is_in_cache(code):
+                    # 涓嶆槸鎯充拱鍗曪紝涔熶笉鏄帓涓�鐨勪唬鐮�
                     if not is_special:
                         situation = MarketSituationManager().get_situation_cache()
                         zylt_threshold_as_yi = buy_condition_util.get_zyltgb_threshold(situation)
diff --git a/l2/l2_data_manager_new.py b/l2/l2_data_manager_new.py
index d4ccca1..aa58706 100644
--- a/l2/l2_data_manager_new.py
+++ b/l2/l2_data_manager_new.py
@@ -962,7 +962,7 @@
         money_y = min(money_y, 50)
         money_y = max(money_y, 5)
         # 璁$畻澶у崟鍙傝�冩暟閲�
-        threshold_count = int(round(0.4 * money_y)) * 2
+        threshold_count = int(round(0.4 * money_y)) * 4
         threshold_money = threshold_count * 299 * 10000
         volume_rate_info = cls.volume_rate_info.get(code)
 

--
Gitblit v1.8.0