| | |
| | | # 保存涨停时间 |
| | | codes_set = set() |
| | | limit_up_reasons = {} |
| | | limit_up_time_dict = {} |
| | | for d in result_list_: |
| | | code = d[0] |
| | | limit_up_reasons[code] = d[5] |
| | | codes_set.add(code) |
| | | if tool.is_can_buy_code(code): |
| | | limit_up_time = time.strftime("%H:%M:%S", time.localtime(d[2])) |
| | | if tool.is_can_buy_code(code): |
| | | code_price_manager.Buy1PriceManager().set_limit_up_time(code, limit_up_time) |
| | | limit_up_time_dict[code] = limit_up_time |
| | | add_codes = codes_set - self.__latest_limit_up_codes_set |
| | | self.__latest_limit_up_codes_set = codes_set |
| | | |
| | |
| | | if b not in limit_up_reason_code_dict: |
| | | limit_up_reason_code_dict[b] = set() |
| | | limit_up_reason_code_dict[b].add(code) |
| | | LCancelRateManager.set_block_limit_up_count(limit_up_reason_code_dict) |
| | | # 涨停时间code |
| | | LCancelRateManager.set_block_limit_up_count(limit_up_reason_code_dict, limit_up_time_dict) |
| | | |
| | | if add_codes: |
| | | for code in add_codes: |