From 9049fe27c9ef5388d5d8a48a130ad98bdfe30923 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期一, 14 七月 2025 10:23:05 +0800 Subject: [PATCH] bug修复 --- utils/outside_api_command_manager.py | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/utils/outside_api_command_manager.py b/utils/outside_api_command_manager.py index d65631a..2c63e36 100644 --- a/utils/outside_api_command_manager.py +++ b/utils/outside_api_command_manager.py @@ -110,6 +110,30 @@ result = cls.__create_and_run_client(CLIENT_TYPE_TRADE_SELL, i) cls.trade_client_dict[result[0]] = result[1] + # @classmethod + # def process_command(cls, client_id, result_json): + # data = result_json["data"] + # content_type = data["type"] + # printlog("鎺ユ敹鍐呭", data) + # request_id = result_json.get('request_id') + # if not socket_util.is_client_params_sign_right(result_json): + # printlog("绛惧悕閿欒") + # # 绛惧悕鍑洪敊 + # SendResponseSkManager.send_error_response(_type, request_id, client_id, + # {"code": -1, "msg": "绛惧悕閿欒"}) + # return + # if content_type == API_TYPE_TRADE: + # # 浜ゆ槗 + # cls.action_callback.OnTrade(client_id, request_id, data) + # elif content_type == API_TYPE_SELL_RULE: + # cls.action_callback.OnSellRule(client_id, request_id, data) + # elif content_type == API_TYPE_REFRESH_TRADE_DATA: + # cls.action_callback.OnRefreshTradeData(client_id, request_id, data) + # elif content_type == API_TYPE_GET_CODE_POSITION_INFO: + # cls.action_callback.OnGetCodePositionInfo(client_id, request_id, data) + # elif content_type == API_TYPE_COMMON_REQUEST: + # cls.action_callback.OnCommonRequest(client_id, request_id, data) + # 鍚彇鎸囦护 @classmethod def __listen_command(cls, _type, client_id, sk): -- Gitblit v1.8.0