From 81f328532e366eef171b71810b221a9294dda78f Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期四, 21 十二月 2023 14:31:58 +0800 Subject: [PATCH] 买入条件调整/L撤调整 --- third_data/code_plate_key_manager.py | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/third_data/code_plate_key_manager.py b/third_data/code_plate_key_manager.py index 02d72e3..a109fc0 100644 --- a/third_data/code_plate_key_manager.py +++ b/third_data/code_plate_key_manager.py @@ -573,10 +573,10 @@ return True, False, f"銆恵block}銆戝墠鎺掍唬鐮侊細{current_shsz_rank}", is_strong_block else: # 鐪嬭嚜鐢辨祦閫氬競鍊兼槸鍚﹀皬浜�20浜� - if is_strong_block: + if is_strong_block and current_shsz_rank < len(current_open_limit_up_codes) + max_rank + 1: zyltgb = global_util.zyltgb_map.get(code) if zyltgb and zyltgb < 20 * 100000000: - return True, False, f"銆恵block}銆戞定鍋滄暟閲忥紙{len(block_codes)}锛�>=4 鑷敱娴侀�氬競鍊�({zyltgb})灏忎簬20浜�", is_strong_block + return True, False, f"銆恵block}銆戝己鍔挎澘鍧� 鑷敱娴侀�氬競鍊�({zyltgb})灏忎簬20浜�", is_strong_block return False, False, f"銆恵block}銆戝墠鎺掍唬鐮侊細{front_current_shsz_rank_codes} 瓒呰繃{len(current_open_limit_up_codes) + max_rank}涓�", is_strong_block # 杩囨椂鐨勪唬鐮� @@ -764,10 +764,11 @@ # high_level_general_code_blocks 楂樹綅娉涘寲鏉垮潡 @classmethod def update_can_buy_blocks(cls, code, current_limit_up_datas, limit_up_record_datas, - yesterday_current_limit_up_records, + latest_current_limit_up_records, before_blocks_dict, current_limit_up_block_codes_dict): yesterday_current_limit_up_codes = set() yesterday_current_limit_up_records_dict = {} + yesterday_current_limit_up_records = latest_current_limit_up_records[0][1] if yesterday_current_limit_up_records: for r in yesterday_current_limit_up_records: yesterday_current_limit_up_codes.add(r[0]) @@ -779,12 +780,15 @@ if r[4].replace("杩炴澘", "").isdigit(): count = int(r[4].replace("杩炴澘", "")) if count >= 3: + latest_datas = latest_current_limit_up_records[:count-1] # 鏄珮浣嶆澘 # 褰撴棩绮鹃�� blocks = set(r[6].split("銆�")) - if r[0] in yesterday_current_limit_up_records_dict: - # 鏄ㄦ棩娑ㄥ仠鍘熷洜 - blocks.add(yesterday_current_limit_up_records_dict.get(r[0])[5]) + for d in latest_datas: + for dd in d[1]: + if dd[0] == r[0]: + blocks.add(dd[5]) + break f_blocks = [] for b in blocks: if b: -- Gitblit v1.8.0