| | |
| | | # else: |
| | | code_block_dict[b[1]][bb] += b[2] |
| | | block_codes_dict = {} # {"板块":[(代码,涨停次数)]} |
| | | st_codes = HistoryKDatasUtils.get_st_codes() |
| | | for code in code_block_dict: |
| | | if code in st_codes: |
| | | continue |
| | | for b in code_block_dict[code]: |
| | | if b not in block_codes_dict: |
| | | block_codes_dict[b] = [] |
| | |
| | | # 统计最近120天的涨停数据 {"代码": (涨停次数, 名称, 自由流通市值)} |
| | | limit_up_info_map = self.__get_limit_up_info(min_day) |
| | | fdatas = [] |
| | | for b in block_codes_dict: |
| | | # if b != '人工智能': |
| | | # continue |
| | | |
| | | for b in block_codes_dict: |
| | | # if b != '光伏': |
| | | # continue |
| | | if b in constant.KPL_INVALID_BLOCKS: |
| | | continue |
| | | |