From 2f4bf81b042d24d5fbbd2fa7ec3672a06b211264 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期五, 21 三月 2025 15:41:17 +0800
Subject: [PATCH] 根据板块成分股来获取新题材的成分股/成交数据处理优化

---
 third_data/kpl_data_constant.py |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/third_data/kpl_data_constant.py b/third_data/kpl_data_constant.py
index 7f4cfad..3736c08 100644
--- a/third_data/kpl_data_constant.py
+++ b/third_data/kpl_data_constant.py
@@ -8,7 +8,7 @@
 from third_data.third_blocks_manager import BlockMapManager
 from trade import trade_record_log_util
 
-from utils import tool
+from utils import tool, global_util
 from utils.kpl_data_db_util import KPLLimitUpDataUtil
 
 # 鐢ㄤ簬璁$畻婵�杩涗拱寮�1鐨勬澘鏁帮細{"浠g爜":(鍑犵増,{鏉垮潡})}
@@ -217,6 +217,11 @@
         @param block:
         @return: 杩斿洖澧炲姞鏂伴鏉愭槸鍚︽垚鍔�
         """
+
+        # 鑷敱娴侀�氳偂鏈澶т簬50浜�
+        zyltgb = global_util.zyltgb_map.get(code)
+        if not zyltgb or zyltgb < 50e8:
+            return False
         if block in constant.KPL_INVALID_BLOCKS:
             return False
         old_blocks = self.__radical_buy_reasons_dict.get(code)
@@ -245,6 +250,17 @@
         """
         return self.__new_blocks
 
+    def is_new_block(self, block):
+        """
+        鏄惁鏄柊棰樻潗
+        @param block:
+        @return:
+        """
+        if self.__new_blocks and block in self.__new_blocks:
+             return True
+        return False
+
+
 
 class TodayLimitUpReasonChangeManager:
     """

--
Gitblit v1.8.0