| | |
| | | records = get_today_history_limit_up_datas_cache() |
| | | # 按代码排序 |
| | | # {"代码":(代码,涨停原因, 涨停时间, 几版)} |
| | | current_code_block_dict = {x[0]: (x[0], x[2], x[5], x[4]) for x in current_limit_up_datas} |
| | | current_code_block_dict = {x[0]: (x[0], x[5], x[2], x[4]) for x in current_limit_up_datas} |
| | | record_code_block_dict = {x[3]: (x[3], x[2], x[5], x[12]) for x in records} |
| | | # 根据涨停原因统计 |
| | | # {"板块":{代码}} |
| | |
| | | |
| | | block_count_list = [(k, block_count_dict[k]) for k in block_count_dict] |
| | | block_count_list.sort(key=lambda x: x[1], reverse=True) |
| | | block_count_list = block_count_list[:20] |
| | | block_count_list = block_count_list[:50] |
| | | # [(涨停原因,累计涨停次数,连续次数)] |
| | | fdatas = [] |
| | | today_records_code_dict = {d[3]: d for d in self.__history_limit_up_day_datas.get(now_day)} |