| | |
| | | kpl_block_dict[code] = [] |
| | | kpl_block_dict[code].append((r[2], r[1])) # (板块, 日期) |
| | | for code in kpl_block_dict: |
| | | if code =='002361': |
| | | if code == '002361': |
| | | print("") |
| | | block_infos = kpl_block_dict.get(code) |
| | | cls.__radical_buy_reasons_dict[code] = cls.__compute_limit_up_reasons(code, block_infos) |
| | |
| | | def get_history_limit_up_block_codes(cls, block): |
| | | return cls.__history_limit_up_block_codes.get(block) |
| | | |
| | | @classmethod |
| | | def get_history_limit_up_codes(cls): |
| | | """ |
| | | 获取今日历史涨停代码 |
| | | @return: |
| | | """ |
| | | if not cls.__history_code_data_dict: |
| | | return set() |
| | | return cls.__history_code_data_dict.keys() |
| | | |
| | | |
| | | if __name__ == "__main__": |
| | | ContainsLimitupCodesBlocksManager() |