Administrator
2024-11-05 07aecbafd7397b0aaa5d18edc697b64e8c62d454
third_data/code_plate_key_manager.py
@@ -1601,17 +1601,17 @@
                    msges.append(f"【{b}】:{result[1]}")
            fmsges.append("板块回封判断##" + ",".join(msges))
        # 如果能扫入就需要获取代码在板块中的身位
        if can_buy_blocks:
            excude_codes = set()
            if kpl_data_constant.open_limit_up_code_dict_for_radical_buy:
                excude_codes |= kpl_data_constant.open_limit_up_code_dict_for_radical_buy.keys()
            # 剔除开1的代码
            for b in keys_:
                history_index, history_before_codes_info = cls.__get_history_index(code, b, yesterday_limit_up_codes,
                                                                                   excude_codes)
                if history_index >= 4:
                    return set(), f"在【{b}】中身位({history_index + 1})靠后"
        # 如果能扫入就需要获取代码在板块中的身位,此规则暂时不生效
        # if can_buy_blocks:
        #     excude_codes = set()
        #     if kpl_data_constant.open_limit_up_code_dict_for_radical_buy:
        #         excude_codes |= kpl_data_constant.open_limit_up_code_dict_for_radical_buy.keys()
        #     # 剔除开1的代码
        #     for b in keys_:
        #         history_index, history_before_codes_info = cls.__get_history_index(code, b, yesterday_limit_up_codes,
        #                                                                            excude_codes)
        #         if history_index >= 4:
        #             return set(), f"在【{b}】中身位({history_index + 1})靠后"
        return can_buy_blocks, " **** ".join(fmsges)