From 63889050e5e35c377ff30875a25fa6da6974052e Mon Sep 17 00:00:00 2001 From: admin <admin@example.com> Date: 星期一, 17 三月 2025 13:22:19 +0800 Subject: [PATCH] 日志调整 --- strategy/kpl_api.py | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/strategy/kpl_api.py b/strategy/kpl_api.py index 271be5f..ab05931 100644 --- a/strategy/kpl_api.py +++ b/strategy/kpl_api.py @@ -17,7 +17,7 @@ from strategy.index_market_trend_strategy import index_trend_expectation from trade import middle_api_protocol -from utils import hx_qc_value_util +from utils import hx_qc_value_util, tool # 鑾峰彇logger瀹炰緥 logger = logger_common @@ -278,7 +278,7 @@ ds.append(request_plate_codes(d)) dask_result = batch_get_plate_codes(ds) dask_result.compute() - now_time = data_cache.now_time + now_time = tool.get_now_time_str() if data_cache.L1_DATA_START_TIME < now_time < data_cache.CLOSING_TIME: logger.info(f"绮鹃�夋澘鍧楄偂绁ㄥ己搴︽暟鎹洿鏂� == {market_sift_plate_stock_dict}") return market_sift_plate_stock_dict @@ -331,7 +331,7 @@ # 鑾峰彇娑ㄥ仠鏉垮潡鍚嶇О鍒楄〃骞跺瓨鍌ㄦ湰鍦扮殑鍑芥暟 def get_limit_up_block_names(): # 璁惧畾褰撳墠鏃堕棿鐐� - now_time = data_cache.now_time + now_time = tool.get_now_time_str() # print(f"now_time===={now_time}") if data_cache.SERVER_RESTART_TIME < now_time < data_cache.UPDATE_DATA_TIME: # print(f"鍦ㄦ椂闂村唴浣跨敤--------------------------") @@ -718,7 +718,7 @@ while True: try: if data_cache.position_automatic_management_switch is True: - now_time = data_cache.now_time + now_time = tool.get_now_time_str() if data_cache.SERVER_RESTART_TIME < now_time < data_cache.UPDATE_DATA_TIME: # 鑾峰彇澶х洏缁煎悎寮哄害鍒嗘暟 data_cache.real_time_market_strong = get_market_strong() -- Gitblit v1.8.0