From c131be702b0583d3374f15e61885457ff391e0d7 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期五, 11 十月 2024 15:13:47 +0800
Subject: [PATCH] bug修复

---
 third_data/code_plate_key_manager.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/third_data/code_plate_key_manager.py b/third_data/code_plate_key_manager.py
index 83eb4c5..aeba8a5 100644
--- a/third_data/code_plate_key_manager.py
+++ b/third_data/code_plate_key_manager.py
@@ -14,6 +14,7 @@
 from settings.trade_setting import MarketSituationManager
 from third_data.kpl_data_constant import LimitUpDataConstant
 from third_data.third_blocks_manager import BlockMapManager, CodeThirdBlocksManager
+from trade.order_statistic import DealAndDelegateWithBuyModeDataManager
 from trade.radical_buy_data_manager import RedicalBuyDataManager
 from utils import global_util, tool, buy_condition_util
 from log_module import log, async_log_util
@@ -1299,7 +1300,7 @@
             return False, f"寮�1鏁伴噺锛歿count}锛岄潪寮�1棣栨澘韬綅涓嶅尮閰嶏細鍘嗗彶-{history_index + 1} 瀹炴椂-{current_index + 1}"
         if history_index == 1:
             # 褰撳墠浠g爜涓鸿��2锛岃鍒ゆ柇鑰佸ぇ鏄惁鍙拱
-            if RedicalBuyDataManager.can_buy(history_before_codes_info[0][0])[0]:
+            if RedicalBuyDataManager.can_buy(history_before_codes_info[0][0], DealAndDelegateWithBuyModeDataManager().get_deal_codes())[0]:
                 return False, f"寮�1鏁伴噺锛歿count}锛屽墠鎺掍唬鐮佸彲涔帮細{history_before_codes_info[0]}"
             return True, f"寮�1鏁伴噺锛歿count}锛屽墠鎺掍唬鐮佷笉鍙拱锛歿history_before_codes_info[0]}"
         return True, f"寮�1鏁伴噺锛歿count}锛屽巻鍙�-{history_index + 1} 瀹炴椂-{current_index + 1}"
@@ -1348,7 +1349,7 @@
         # 涓嶈绠楀墠2鐨勪唬鐮�
 
         exclude_codes = set()
-        for x in current_before_codes:
+        for x in current_before_codes_info:
             if x[1] < kpl_block_util.open_limit_up_time_range[1]:
                 exclude_codes.add(x[0])
         # 闄ゅ幓鍓嶄簩浠g爜涓庡紑1浠g爜涔嬪悗鏄惁涓洪鏉胯�佸ぇ锛氭墍鏈夊紑1鐨勮涓�1涓�
@@ -1370,7 +1371,7 @@
             # 棣栨澘鑰�2锛屽垽鏂墠闈㈢殑鑰佸ぇ鏄惁鏄睘浜庝笉鑳戒拱鐨勮寖鐣�
             pre_code = history_before_codes_info[0][0]
             # pre_code涓嶈兘涔帮紝鎵嶈兘涔�
-            if RedicalBuyDataManager.can_buy(pre_code)[0]:
+            if RedicalBuyDataManager.can_buy(pre_code, DealAndDelegateWithBuyModeDataManager().get_deal_codes())[0]:
                 return False, f"鍓嶆帓浠g爜鍙拱锛歿pre_code}"
             # 璺濈鍓嶄竴涓槸鍚﹀湪10鍒嗛挓鍐�
             if tool.trade_time_sub(tool.timestamp_format(limit_up_timestamp, '%H:%M:%S'),

--
Gitblit v1.8.0