Administrator
2023-12-07 8224c9862cea196ecb8bd97999b67d993fb18f83
bug修复
1个文件已修改
19 ■■■■■ 已修改文件
l2/l2_data_manager_new.py 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
l2/l2_data_manager_new.py
@@ -967,7 +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)
        l2_log.debug(code, "获取到的板块信息:{}", can_buy_result)
        # -------量的约束--------
        k_format = code_nature_analyse.CodeNatureRecordManager().get_k_format_cache(code)
@@ -1016,17 +1016,14 @@
                    # 是独苗
                    if code in cls.volume_rate_info and cls.volume_rate_info[code][0] < 0.3:
                        return False, True, f"近2天有10日内最高量,量比({cls.volume_rate_info[code][0]})未达到30%"
                # 是独苗
                if can_buy_result[1]:
                    if now_timestamp < int("100000") or int("130000") <= now_timestamp < int("133000"):
                        # 独苗必须9:30-10:00和13:00-13:30时间段内买
                        return True, False, f"独苗:{can_buy_result[2]}"
                    else:
                        return False, True, f"独苗:当前时间不能买"
                if now_timestamp < int("100000") or int("130000") <= now_timestamp < int("133000"):
                    # 独苗必须9:30-10:00和13:00-13:30时间段内买
                    return True, False, f"独苗:{can_buy_result[2]}"
                else:
                    if can_buy_result[0]:
                        return True, False, can_buy_result[2]
                    return False, True, f"独苗:当前时间不能买"
            else:
                if can_buy_result[0]:
                    return True, False, can_buy_result[2]
        return False, True, can_buy_result[2]
    @classmethod