| | |
| | | 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) |
| | |
| | | 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: |
| | |
| | | # 始终获取精选板块 |
| | | if True: |
| | | # 获取 |
| | | if k4: |
| | | if k4 and not keys: |
| | | # 当涨停原因没有时才取精选板块 |
| | | keys |= k4 |
| | | keys = keys - constant.KPL_INVALID_BLOCKS |
| | | |