From 02166225b34a7ec2c41dc8eda77c431465b8d9dd Mon Sep 17 00:00:00 2001
From: admin <admin@example.com>
Date: 星期一, 24 三月 2025 13:55:50 +0800
Subject: [PATCH] bug修改

---
 strategy/data_cache.py |   26 ++++++++++++++------------
 1 files changed, 14 insertions(+), 12 deletions(-)

diff --git a/strategy/data_cache.py b/strategy/data_cache.py
index 282250b..74b5a8e 100644
--- a/strategy/data_cache.py
+++ b/strategy/data_cache.py
@@ -132,16 +132,17 @@
 UPDATE_DATA_TIME = datetime.time(18, 31, 00).strftime("%H:%M:%S")  # 瀹氫箟鏇存柊鏁版嵁鏃堕棿
 PROGRAM_SLEEP_TIME = datetime.time(23, 00, 00).strftime("%H:%M:%S")  # 瀹氫箟绋嬪簭浼戠湢鏃堕棿
 
-# 璇诲彇宸茬粡鑾峰彇鍒板苟瀛樺偍鍦ㄦ湰鍦扮殑鐩爣鑼冨洿鐨勪釜鑲$殑鏉垮潡姒傚康
-# 璇诲彇JSON鏂囦欢骞惰В鏋愪负瀛楀吀
-if os.path.exists(constant.ALL_STOCKS_PLATE_PATH):
-    with open(constant.ALL_STOCKS_PLATE_PATH, 'r',
-              encoding='utf-8') as f:
-        json_data = f.read()
-else:
-    json_data = "{}"
-all_stocks_plate_dict = json.loads(json_data)
-logger.info(f"all_stocks_plate_dict鐨勬暟閲�={len(all_stocks_plate_dict)}")
+# todo 2025-03-25 鍚庢棤BUG鍗冲彲褰诲簳鍒犻櫎涓嬪娉ㄩ噴閮ㄥ垎
+# # 璇诲彇宸茬粡鑾峰彇鍒板苟瀛樺偍鍦ㄦ湰鍦扮殑鐩爣鑼冨洿鐨勪釜鑲$殑鏉垮潡姒傚康
+# # 璇诲彇JSON鏂囦欢骞惰В鏋愪负瀛楀吀
+# if os.path.exists(constant.ALL_STOCKS_PLATE_PATH):
+#     with open(constant.ALL_STOCKS_PLATE_PATH, 'r',
+#               encoding='utf-8') as f:
+#         json_data = f.read()
+# else:
+#     json_data = "{}"
+# all_stocks_plate_dict = json.loads(json_data)
+# logger.info(f"all_stocks_plate_dict鐨勬暟閲�={len(all_stocks_plate_dict)}")
 
 # 鍒濆鍖栧綋鏃ュ綋鏃舵渶楂樹环
 high_price = 0
@@ -165,8 +166,10 @@
 # 鍒濆鍖栧疄鏃跺ぇ鐩樿鎯呮儏缁患鍚堝己搴﹀垎鏃跺垪琛�
 time_sharing_market_strong_dirt = {}
 
-# 涓篕绾垮睘鎬ф寚鏍囧瓧鍏稿垵濮嬪寲
+# 涓烘墍鏈変釜鑲$殑甯﹀睘鎬绾� 瀛楀吀鍒濆鍖�
 all_stocks_all_K_line_property_dict = {}
+# 涓烘寚鏁扮殑甯﹀睘鎬绾� 瀛楀吀鍒濆鍖�
+all_index_k_line_property_dict = {}
 # 澹版槑K绾垮睘鎬т腑鎵�鏈夋定鍋滅被鍨�
 limit_up_type = ['one_line_limit_up', 'limit_down_then_limit_up', 'limit_up_then_limit_down_then_limit_up',
                  'limit_up']
@@ -175,7 +178,6 @@
 # 澹版槑K绾垮睘鎬т腑鎵�鏈夌偢鏉跨被鍨�
 frying_plate_type = ['frying_plate', 'first_frying_plate', 'one_line_limit_up_then_frying_plate',
                      'one_line_limit_up_then_frying_plate_then_limit_down', 'not_first_frying_plate']
-
 # 瀹氫箟涓�涓綋鏃ュ垎鏃跺唴鎵�鏈変釜鑲$殑寮�鐩樹环瀛楀吀
 all_stocks_current_open = {}
 # 瀹氫箟涓�涓綋鏃ュ垎鏃跺唴鎵�鏈変釜鑲$殑瀹炴椂鏈�楂樹环鍜屾渶浣庝环瀛楀吀

--
Gitblit v1.8.0