From cc2c7a8514d3d6eea4f73b5875c2500883d165f0 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期一, 26 五月 2025 22:57:20 +0800 Subject: [PATCH] 增加自动加白接口 --- api/outside_api_command_callback.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/api/outside_api_command_callback.py b/api/outside_api_command_callback.py index db672cd..27088d6 100644 --- a/api/outside_api_command_callback.py +++ b/api/outside_api_command_callback.py @@ -1390,7 +1390,8 @@ "top_block_count_by_market_strong": constant.RADICAL_BUY_TOP_IN_COUNT_BY_MARKET_STRONG, "special_codes_max_block_in_rank": constant.RADICAL_BUY_TOP_IN_INDEX_WITH_SPECIAL, "ignore_block_in_money_market_strong": constant.IGNORE_BLOCK_IN_MONEY_MARKET_STRONG, - "buy_first_limit_up": 1 if constant.CAN_BUY_FIRST_LIMIT_UP else 0 + "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 }} self.send_response({"code": 0, "data": data, "msg": f""}, client_id, @@ -1414,6 +1415,9 @@ if radical_buy.get('buy_first_limit_up') is not None: constant.CAN_BUY_FIRST_LIMIT_UP = True if radical_buy.get( 'buy_first_limit_up') else False + if radical_buy.get('can_auto_add_white') is not None: + constant.CAN_AUTO_ADD_WHITE = True if radical_buy.get( + 'can_auto_add_white') else False self.send_response({"code": 0, "data": {}, "msg": f""}, client_id, -- Gitblit v1.8.0