| | |
| | | load_code_block() |
| | | msg_list = [] |
| | | for block in keys: |
| | | is_top_4 = kpl_block_util.is_top_block(code, block, limit_up_record_datas, 4) |
| | | is_top_8_record, top_8_record = kpl_block_util.is_record_top_block(code, block, limit_up_record_datas, 8) |
| | | is_top_4_current, top_4_current = kpl_block_util.is_record_top_block(code, block, current_limit_up_datas, 4) |
| | | is_top_4 = is_top_8_record and is_top_4_current |
| | | |
| | | # 获取主板实时身位 |
| | | current_shsz_rank = kpl_block_util.get_code_current_rank(code, block, current_limit_up_datas, |
| | | code_limit_up_reason_dict, shsz=True) |
| | |
| | | # 是否可以下单 |
| | | # 返回:是否可以下单,消息,板块类型 |
| | | @classmethod |
| | | def can_buy(cls, code, current_limit_up_datas, limit_up_record_datas,before_blocks_dict): |
| | | def can_buy(cls, code, current_limit_up_datas, limit_up_record_datas, before_blocks_dict): |
| | | if constant.TEST: |
| | | return True, "", cls.BLOCK_TYPE_NONE |
| | | block, block_msg = cls.get_can_buy_block(code, current_limit_up_datas, |