| | |
| | | return False, True, f"板上放量距离远({not_limit_up_trade_time_with_ms}),没有小群撤({trade_index}-{order_begin_pos.buy_single_index})" |
| | | except Exception as e: |
| | | l2_log.info(code, logger_l2_error, f"板上放量({not_limit_up_trade_time_with_ms})不足异常:{str(e)}") |
| | | logger_l2_error.exception(e) |
| | | return False, True, f"板上放量计算异常" |
| | | |
| | | # -------是否距离成交进度位太远-------- |
| | |
| | | end_time_with_ms = l2_data_util.L2DataUtil.get_time_with_ms(total_datas[end_index]["val"]) |
| | | buy_count = 0 |
| | | cancel_count = 0 |
| | | for i in range(end_index - 1, start_index - 1, -1): |
| | | for i in range(end_index - 1, start_index, -1): |
| | | data = total_datas[i] |
| | | val = data["val"] |
| | | if val["num"] < min_num: |
| | |
| | | break |
| | | continue |
| | | # 与当前时间相差3s的结束 |
| | | if tool.trade_time_sub_with_ms(end_time_with_ms, l2_data_util.L2DataUtil.get_time_with_ms(val)) > 3000: |
| | | if tool.trade_time_sub_with_ms(end_time_with_ms, l2_data_util.L2DataUtil.get_time_with_ms(val)) > 6000: |
| | | break |
| | | |
| | | cancel_count += 1 |