| | |
| | | for d in limit_up_record_datas: |
| | | block_info.init_code(d[3]) |
| | | kpl_block_util.is_record_top_block("002845", "芯片", limit_up_record_datas, 4) |
| | | kpl_block_util.is_current_top_block("002845", "芯片", current_limit_up_datas, 4) |
| | | print( kpl_block_util.is_current_top_block("002845", "芯片", current_limit_up_datas, 4)) |
| | | # results = CodePlateKeyBuyManager.get_can_buy_block(code, current_limit_up_datas, |
| | | # limit_up_record_datas, block_info.get_before_blocks_dict()) |
| | | # print(results) |
| | |
| | | is_top_8_record, top_8_record = kpl_block_util.is_record_top_block(code, block, limit_up_record_datas, 8) |
| | | is_top_4_current, top_4_current = kpl_block_util.is_current_top_block(code, block, current_limit_up_datas, 4) |
| | | is_top_4 = is_top_8_record and is_top_4_current |
| | | msg_list.append(f"实时top4: {top_4_current}") |
| | | msg_list.append(f"\n实时top4: {top_4_current}(涨停数量:{len(current_limit_up_datas)})") |
| | | msg_list.append(f"历史top8: {top_8_record}") |
| | | |
| | | # 获取主板实时身位 |
| | |
| | | msg_list.append( |
| | | f"板块-{block}: 不是top4涨停板块,满足精选/行业流入要求,不为主板龙1(实时身位-{current_shsz_rank},历史身位-{record_shsz_rank})") |
| | | continue |
| | | return None, "\r\n".join(msg_list) |
| | | return None, "\n".join(msg_list) |
| | | |
| | | # 是否可以下单 |
| | | # 返回:是否可以下单,消息,板块类型 |