| | |
| | | return b_cancel_data, "H撤销比例触发阈值" |
| | | except Exception as e: |
| | | async_log_util.error(logger_l2_error, |
| | | f"H撤出错 参数:buy_single_index-{_buy_single_index} buy_exec_index-{_buy_exec_index}") |
| | | f"H撤出错 参数:buy_single_index-{_buy_single_index} buy_exec_index-{_buy_exec_index} {str(e)}") |
| | | async_log_util.exception(logger_l2_error, e) |
| | | finally: |
| | | # l2_data_log.l2_time(code, round(t.time() * 1000) - _start_time, "已下单-H撤大单计算") |
| | |
| | | current_limit_up_datas = [] |
| | | if not limit_up_record_datas: |
| | | limit_up_record_datas = [] |
| | | # TODO 测试暂时注释 |
| | | # if CodePlateKeyBuyManager.is_need_cancel(code, limit_up_reasons.get(code), |
| | | # current_limit_up_datas, |
| | | # limit_up_record_datas, |
| | | # yesterday_current_limit_up_codes, |
| | | # before_blocks_dict): |
| | | # l2_data_manager_new.L2TradeDataProcessor.cancel_buy(code, |
| | | # f"涨停原因({limit_up_reasons.get(code)})不是老大撤单", |
| | | # "板块撤") |
| | | # 买绝对老大 |
| | | if CodePlateKeyBuyManager.is_need_cancel(code, limit_up_reasons.get(code), |
| | | current_limit_up_datas, |
| | | limit_up_record_datas, |
| | | yesterday_current_limit_up_codes, |
| | | before_blocks_dict): |
| | | l2_data_manager_new.L2TradeDataProcessor.cancel_buy(code, |
| | | f"涨停原因({limit_up_reasons.get(code)})不是老大撤单", |
| | | "板块撤") |
| | | except Exception as e: |
| | | logger_debug.exception(e) |
| | | kpl_data_manager.KPLLimitUpDataRecordManager.save_record(tool.get_now_date_str(), result_list_) |