| | |
| | | special_codes = BlockSpecialCodesManager().get_block_codes(b) |
| | | if special_codes and code in special_codes: |
| | | return index + 1 |
| | | |
| | | else: |
| | | # 尚未涨停过的代码,订阅板块有辨识度的前6 |
| | | for b in blocks: |
| | | # 如果当前板块不能买则不订阅 |
| | | if KPLPlateForbiddenManager().is_in_cache(b): |
| | | continue |
| | | if b not in top_in_blocks: |
| | | continue |
| | | index = top_in_blocks.index(b) |
| | | special_codes = BlockSpecialCodesManager().get_block_codes(b) |
| | | if not special_codes or code not in special_codes: |
| | | continue |
| | | # 查询在板块中的排序 |
| | | info = RadicalBuyBlockManager().get_history_index(code, b, yesterday_limit_up_codes) |
| | | if info[0] > 0: |
| | | info = RadicalBuyBlockManager().filter_before_codes(code, b, info[0], info[1], |
| | | yesterday_limit_up_codes) |
| | | if info[0] >= 6: |
| | | continue |
| | | # 净流入 + 辨识度 + 整体身位老6之前 |
| | | return index + 1 |
| | | return 10000 |
| | | |
| | | |