| | |
| | | return self.__history_blocks_dict_cache.get(code) |
| | | try: |
| | | kpl_results = KPLLimitUpDataUtil.get_latest_block_infos(code=code) |
| | | # 取最近2条数据 |
| | | if kpl_results and len(kpl_results) > 2: |
| | | kpl_results = kpl_results[-2:] |
| | | keys = set() |
| | | if kpl_results: |
| | | keys |= set([x[2] for x in kpl_results]) |
| | |
| | | if history_index == 0 and current_index == 0: |
| | | return True, f"开1数量:{count}" |
| | | else: |
| | | return False, f"开1数量:{count},非开1首板身位不匹配:历史-{history_index+1} 实时-{current_index+1}" |
| | | return False, f"开1数量:{count},非开1首板身位不匹配:历史-{history_index + 1} 实时-{current_index + 1}" |
| | | else: |
| | | # 买老3 |
| | | if history_index == 1 and current_index == 1: |
| | | return True, f"开1数量:{count}" |
| | | else: |
| | | return False, f"开1数量:{count},非开1首板身位不匹配:历史-{history_index+1} 实时-{current_index+1}" |
| | | return False, f"开1数量:{count},非开1首板身位不匹配:历史-{history_index + 1} 实时-{current_index + 1}" |
| | | |
| | | @classmethod |
| | | def __is_radical_buy_with_block_up(cls, code, block, yesterday_limit_up_codes): |