| | |
| | | # except Exception as e: |
| | | # logging.exception(e) |
| | | # pass |
| | | |
| | | logger_l2_codes_subscript.info(f"{request_id}加载l2代码涨停价结束") |
| | | # 获取60天最大记录 |
| | | for code in codes: |
| | | need_get_volumn = False |
| | |
| | | l2_trade_util.forbidden_trade(code, |
| | | f"无辨识度,涨停价({limit_up_price})>50") |
| | | continue |
| | | if code_nature_analyse.is_price_too_high_in_days(code, volumes_data, limit_up_price)[0]: |
| | | if code_nature_analyse.is_price_too_high_in_days(code, volumes_data, limit_up_price)[0] and code.find("30")!=0: |
| | | # 判断是否太高 |
| | | l2_trade_util.forbidden_trade(code, "6天内股价长得太高") |
| | | continue |
| | |
| | | except Exception as e: |
| | | logger_first_code_record.error(f"{code}:{str(e)}") |
| | | logger_first_code_record.exception(e) |
| | | |
| | | logger_l2_codes_subscript.info(f"{request_id}加载l2代码K线结束") |
| | | |
| | | gpcode_manager.FirstCodeManager().add_record(codes) |
| | | # 初始化板块信息,暂时删除 |
| | | # for code in codes: |
| | |
| | | limit_up_time = None |
| | | if code not in limit_up_price_dict: |
| | | continue |
| | | is_limit_up = abs(float(limit_up_price_dict[code]) - float(price)) < 0.01 |
| | | is_limit_up = abs(float(limit_up_price_dict[code]) - float(price)) < 0.001 |
| | | # 纠正数据 |
| | | if is_limit_up and limit_up_time is None: |
| | | limit_up_time = tool.get_now_time_str() |