From a933bf8e8e7f0c5a5131a95ed5d0f0b58bf9ac34 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期二, 22 八月 2023 14:29:35 +0800 Subject: [PATCH] 添加托管交易通道测试 --- huaxin_client/command_manager.py | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/huaxin_client/command_manager.py b/huaxin_client/command_manager.py index 35c9b59..4c2e2bc 100644 --- a/huaxin_client/command_manager.py +++ b/huaxin_client/command_manager.py @@ -48,6 +48,10 @@ def OnMoney(self, client_id, request_id): pass + # 娴嬭瘯 + def OnTest(self, client_id, request_id, data): + pass + class L2ActionCallback(object): # 鐩戝惉L2鏁版嵁 @@ -97,6 +101,8 @@ cls.action_callback.OnDelegateList(client_id, request_id, can_cancel) elif _type == CLIENT_TYPE_POSITION_LIST: cls.action_callback.OnPositionList(client_id, request_id) + elif _type == "test": + cls.action_callback.OnTest(client_id, request_id, data) except Exception as e: logger_local_huaxin_trade_debug.debug(f"__process_command鍑洪敊锛歿result_json}") logging.exception(e) @@ -123,6 +129,7 @@ t1 = threading.Thread(target=lambda: cls.__process_command(_type, None, val), daemon=True) t1.start() except Exception as e: + logger_local_huaxin_trade_debug.exception(e) logging.exception(e) # 缁存姢杩炴帴鏁扮殑绋冲畾 -- Gitblit v1.8.0