Administrator
2024-11-05 3c8a82df5bdb8f3dbc2b760c7c71623b03936d08
third_data/code_plate_key_manager.py
@@ -331,8 +331,6 @@
        return fresult
# 实时开盘啦市场数据
class RealTimeKplMarketData:
    # 精选前5
@@ -1602,6 +1600,18 @@
                    can_buy_blocks.add(b)
                    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})靠后"
        return can_buy_blocks, " **** ".join(fmsges)