From 0acb55dbb2d251472f902b3bb721fd888ab9a31f Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期一, 08 一月 2024 17:37:32 +0800 Subject: [PATCH] 增加获取当前正在委托详情API/下单后立马移除红名单 --- outside_api_command_manager.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/outside_api_command_manager.py b/outside_api_command_manager.py index 015d5f4..abe3b69 100644 --- a/outside_api_command_manager.py +++ b/outside_api_command_manager.py @@ -41,6 +41,7 @@ CODE_LIST_BLACK = "black" CODE_LIST_WANT = "want" CODE_LIST_PAUSE_BUY = "pause_buy" +CODE_LIST_MUST_BUY = "must_buy" # 绫诲瀷 API_TYPE_TRADE = "trade" # 浜ゆ槗 @@ -62,6 +63,7 @@ API_TYPE_SAVE_RUNNING_DATA = "save_running_data" # 淇濆瓨杩愯鏃舵暟鎹� API_TYPE_GET_CODE_POSITION_INFO = "get_code_position_info" # 鑾峰彇浠g爜鎸佷粨淇℃伅 API_TYPE_COMMON_REQUEST = "common_request" # 閫氱敤璇锋眰 + class ActionCallback(object): @@ -165,7 +167,7 @@ return key, sk @classmethod - def init(cls, addr, port, trade_action_callback, common_client_count=20, trade_client_count=15): + def init(cls, addr, port, trade_action_callback, common_client_count=20, trade_client_count=20): cls.common_client_dict.clear() cls.common_client_count = common_client_count cls.trade_client_dict.clear() -- Gitblit v1.8.0