| | |
| | | for k in block_limit_up_dict: |
| | | has_shsz = False |
| | | for b in block_limit_up_dict[k]: |
| | | if b[0].find('00') == 0 or b[0].find('60') == 0: |
| | | if tool.is_can_buy_code(b[0]): |
| | | has_shsz = True |
| | | break |
| | | if not has_shsz: |
| | |
| | | if k[3] == code: |
| | | # 获取当前代码涨停时间 |
| | | limit_up_time = int(k[5]) |
| | | if shsz and not tool.is_shsz_code(k[3]): |
| | | if shsz and not tool.is_can_buy_code(k[3]): |
| | | continue |
| | | # 剔除高位板 |
| | | if k[3] in yesterday_current_limit_up_codes: |
| | |
| | | if k[0] == code: |
| | | # 获取当前代码涨停时间 |
| | | limit_up_time = int(k[2]) |
| | | if shsz and not tool.is_shsz_code(k[0]): |
| | | if shsz and not tool.is_can_buy_code(k[0]): |
| | | continue |
| | | # 剔除高位板 |
| | | if k[0] in yesterday_current_limit_up_codes: |
| | |
| | | return 0, [] |
| | | |
| | | |
| | | # 开1时间范围 |
| | | open_limit_up_time_range = time.mktime( |
| | | time.strptime(tool.get_now_date_str() + " 09:25:00", '%Y-%m-%d %H:%M:%S')), time.mktime( |
| | | time.strptime(tool.get_now_date_str() + " 09:30:00", '%Y-%m-%d %H:%M:%S')) |
| | | |
| | | if __name__ == "__main__": |
| | | pass |
| | | print(open_limit_up_time_range) |