From bbf561f0e888e609c5aa2fcf5834958c438ff9ed Mon Sep 17 00:00:00 2001
From: admin <admin@example.com>
Date: 星期四, 20 三月 2025 18:08:37 +0800
Subject: [PATCH] 交易设置及接口

---
 strategy/check_timer.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/strategy/check_timer.py b/strategy/check_timer.py
index 2b6f335..2468fe3 100644
--- a/strategy/check_timer.py
+++ b/strategy/check_timer.py
@@ -5,7 +5,7 @@
 import time
 
 from log_module.log import logger_common
-from strategy import data_cache
+from strategy import data_cache, index_market_trend_strategy
 from strategy import kpl_api
 from utils import tool
 
@@ -36,6 +36,10 @@
                 logger.info(f"鑾峰彇鎵�鏈変釜鑲$殑鏉垮潡姒傚康 宸茬粡杩愯瀹屾垚")
                 # 瀹屾垚浜嗗悗灏嗘槸鍚︽墽琛岀殑寮�涓爣璁颁负鐪�
                 data_cache.execution = True
+            # 鏈湴鏁版嵁鏇存柊鏃堕棿
+            if data_cache.UPDATE_DATA_TIME < now_time:
+                # 鍐欏叆鎵�鏈夋寚鏁癒绾�
+                index_market_trend_strategy.all_index_k_line_dict_write()
         except Exception as error:
             logger.error(f"瀹炴椂妫�娴嬪畾鏃跺櫒绾跨▼鎶ラ敊: {error}")
         finally:

--
Gitblit v1.8.0