Administrator
2023-12-07 02240681506de2900e957c6745fc3092189023db
bug修复
2个文件已修改
6 ■■■■■ 已修改文件
l2/l2_data_manager_new.py 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
third_data/code_plate_key_manager.py 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
l2/l2_data_manager_new.py
@@ -967,6 +967,7 @@
        can_buy_result = cls.__get_can_buy_block(code)
        if can_buy_result is None:
            return False, True, "尚未获取到板块信息"
        l2_log.debug(code,"获取到的板块信息:{}", can_buy_result)
        # -------量的约束--------
        k_format = code_nature_analyse.CodeNatureRecordManager().get_k_format_cache(code)
third_data/code_plate_key_manager.py
@@ -552,7 +552,7 @@
        if record_shsz_rank < len(open_limit_up_codes) + max_rank:
            return True, False, f"【{block}】前排代码:{record_shsz_rank_codes}"
        else:
            return True, False, f"【{block}】前排代码:{record_shsz_rank_codes} 超过{len(open_limit_up_codes) + max_rank}个"
            return False, False, f"【{block}】前排代码:{record_shsz_rank_codes} 超过{len(open_limit_up_codes) + max_rank}个"
        # 过时的代码
        # if open_limit_up_codes:
@@ -608,7 +608,8 @@
        # 始终获取精选板块
        if True:
            # 获取
            if k4:
            if k4 and not keys:
                # 当涨停原因没有时才取精选板块
                keys |= k4
                keys = keys - constant.KPL_INVALID_BLOCKS