From 2f6456ded1a7fdcdc29968d9d6dc3c3cb11174c1 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期四, 17 七月 2025 11:06:30 +0800 Subject: [PATCH] L后还没找到真实下单位置的默认撤单率修改/L后修改阈值的策略修改 --- api/outside_api_command_callback.py | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/api/outside_api_command_callback.py b/api/outside_api_command_callback.py index ce94a7d..fdb57b8 100644 --- a/api/outside_api_command_callback.py +++ b/api/outside_api_command_callback.py @@ -1542,13 +1542,15 @@ request_id) return rate = round(rate, 2) - + old_rate = LCancelRateManager().get_cancel_rate(0)[0] # L鍚庢暟鎹揩鐓� last_info = LCancelBigNumComputer().statistic_l_down_watch_indexes_info(code) LDownCancelWatchIndexStatisticManager().set_statistic_info(code, last_info) CancelRateHumanSettingManager().set_l_down(code, rate) # L鍚庨噸鏂板泭鎷� - LCancelBigNumComputer().re_compute_l_down_watch_indexes(code) + if rate < old_rate: + # 鏀瑰皬鎵嶈兘閲嶆柊鍥婃嫭 + LCancelBigNumComputer().re_compute_l_down_watch_indexes(code) self.send_response({"code": 0, "data": {}}, client_id, request_id) -- Gitblit v1.8.0