From d163fc446359d66afa10e2ab63e860887aa8732c Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期二, 19 八月 2025 01:33:11 +0800 Subject: [PATCH] 连续涨停时间记录/新增大单概览接口 --- code_attribute/first_target_code_data_processor.py | 21 ++++++++++++++------- 1 files changed, 14 insertions(+), 7 deletions(-) diff --git a/code_attribute/first_target_code_data_processor.py b/code_attribute/first_target_code_data_processor.py index 0493647..f734984 100644 --- a/code_attribute/first_target_code_data_processor.py +++ b/code_attribute/first_target_code_data_processor.py @@ -113,11 +113,12 @@ if not volumes_data: continue volumes = init_data_util.parse_max_volume_new(code, volumes_data[:60]) - max_volume_in_5_days = init_data_util.parse_max_volume_in_days(volumes_data, 5) + max_volume_in_5_days, max_volume_day_in_5_days = init_data_util.parse_max_volume_in_days(volumes_data, 5) async_log_util.info(logger_first_code_record, f"{code} 鑾峰彇鍒伴鏉�60澶╂渶澶ч噺锛歿volumes}") code_volumn_manager.CodeVolumeManager().set_histry_volumn(code, volumes[0], volumes[1], volumes[2], - volumes[3], max_volume_in_5_days) + volumes[3], max_volume_in_5_days, + max_volume_day_in_5_days) # 淇濆瓨K绾垮舰鎬� k_format = code_nature_analyse.get_k_format(code, limit_up_price, volumes_data) @@ -125,9 +126,6 @@ if not WantBuyCodesManager().is_in_cache( code) and not gpcode_manager.BuyOpenLimitUpCodeManager().is_in_cache(code): - if len(k_format) > 10 and k_format[10]: - l2_trade_util.forbidden_trade(code, "杩�5涓氦鏄撴棩鏈夋定鍋�/鐐告澘/璺屽仠") - continue # 鏂伴鏉愮牬鍓嶉珮灏变笉闇�瑕佸姞榛� # 鏂伴鏉愯鎷夐粦杩樻槸鎷夐粦 need_forbidden = True #new_block_processor.is_can_forbidden(code) @@ -139,9 +137,18 @@ if tool.is_ge_code(code) and float(limit_up_price) < 10: l2_trade_util.forbidden_trade(code, "鍒涗笟鏉胯偂浠�10鍧楀唴") + continue if len(k_format) > 14 and k_format[14]: - l2_trade_util.forbidden_trade(code, "鏄ㄦ棩鐐告澘") + l2_trade_util.forbidden_trade(code, "涓婁釜浜ゆ槗鏃ユ定鍋�/鐐告澘") + continue + + if len(k_format) > 15 and k_format[15]: + l2_trade_util.forbidden_trade(code, "涓婁釜浜ゆ槗鏃ヨ穼鍋�") + continue + + if len(k_format) > 12 and k_format[12]: + l2_trade_util.forbidden_trade(code, "涓婁釜浜ゆ槗鏃ユ尟骞呰繃澶�") continue # if code_nature_analyse.is_continue_limit_up_not_enough_fall_dwon(code, volumes_data): @@ -250,7 +257,7 @@ # 绾犳鏁版嵁 if is_limit_up and limit_up_time is None: limit_up_time = tool.get_now_time_str() - pricePre = gpcode_manager.CodePrePriceManager.get_price_pre_cache(code) + pricePre = gpcode_manager.CodePrePriceManager().get_price_pre_cache(code) if pricePre is None: history_k_data_manager.re_set_price_pres([code]) -- Gitblit v1.8.0