From a1ecd205cc8ba08985a1ba88f9dbde3b124e5e0b Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期五, 29 八月 2025 11:29:16 +0800 Subject: [PATCH] 丢撤单bug修复/想买单接口修改 --- api/outside_api_command_callback.py | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/api/outside_api_command_callback.py b/api/outside_api_command_callback.py index e5da722..f748157 100644 --- a/api/outside_api_command_callback.py +++ b/api/outside_api_command_callback.py @@ -1194,6 +1194,7 @@ async_log_util.info(logger_debug, f"缁熻瀹炴挙鐢ㄦ椂锛歿code} - {use_time}") except Exception as e: logger_debug.exception(e) + fdata["volume_info"] = code_volumn_manager.CodeVolumeManager().get_volume_rate(code, with_info=True) fdatas.append(fdata) except Exception as e: logger_debug.exception(e) @@ -1440,7 +1441,8 @@ "buy_first_limit_up": 1 if constant.CAN_BUY_FIRST_LIMIT_UP else 0, "can_auto_add_white": 1 if constant.CAN_AUTO_ADD_WHITE else 0, "can_auto_add_want_buy_codes": 1 if constant.CAN_AUTO_ADD_WANT_BUY_CODES else 0, - "can_auto_l_down_rate_change": 1 if constant.CAN_AUTO_L_DOWN_RATE_CHANGE else 0 + "can_auto_l_down_rate_change": 1 if constant.CAN_AUTO_L_DOWN_RATE_CHANGE else 0, + "auto_add_want_buy_codes_time_ranges": constant.AUTO_ADD_WANT_BUY_CODES_TIME_RANGES }} self.send_response({"code": 0, "data": data, "msg": f""}, client_id, @@ -1474,6 +1476,12 @@ if radical_buy.get('can_auto_l_down_rate_change') is not None: constant.CAN_AUTO_L_DOWN_RATE_CHANGE = True if radical_buy.get( 'can_auto_l_down_rate_change') else False + + if radical_buy.get('auto_add_want_buy_codes_time_ranges') is not None: + time_ranges = radical_buy.get('auto_add_want_buy_codes_time_ranges') + constant.AUTO_ADD_WANT_BUY_CODES_TIME_RANGES = (time_ranges.split(",")[0], time_ranges.split(",")[1]) + + @@ -1586,6 +1594,14 @@ self.send_response({"code": 0, "data": {}}, client_id, request_id) + elif ctype == "remove_l_down_rate": + # 鍒犻櫎L鍚庢挙鍗曟瘮渚� + code = data.get("code") + CancelRateHumanSettingManager().remove_l_down(code) + trade_record_log_util.add_common_msg(code, "鍒犻櫎L鍚庨璁炬瘮渚�") + self.send_response({"code": 0, "data": {}}, + client_id, + request_id) elif ctype == "get_continue_buy_info": # 璁剧疆L鍚庢挙鍗曟瘮渚� -- Gitblit v1.8.0