| | |
| | | # 计算 |
| | | # 获取开1的板块 |
| | | open_limit_up_code_dict = kpl_data_constant.open_limit_up_code_dict_for_radical_buy |
| | | if not open_limit_up_code_dict: |
| | | return False, "没有首板开1的数据" |
| | | open_limit_up_blocks = set() |
| | | for c in open_limit_up_code_dict: |
| | | open_limit_up_blocks |= open_limit_up_code_dict[c][1] |
| | | if open_limit_up_code_dict: |
| | | for c in open_limit_up_code_dict: |
| | | open_limit_up_blocks |= open_limit_up_code_dict[c][1] |
| | | # 获取代码的板块 |
| | | keys_, k1_, k11_, k2_, k3_, k4_ = cls.__TargetCodePlateKeyManager.get_plate_keys(code, contains_today=False) |
| | | match_blocks = open_limit_up_blocks & keys_ |
| | | if not match_blocks: |
| | | return False, "没匹配到开1的板块" |
| | | can_buy_blocks = set() |
| | | msges = [] |
| | | for b in match_blocks: |