From 95e52fd8db1d2801110cc84f1e4bd42a546a4a5c Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期五, 01 十二月 2023 17:23:53 +0800 Subject: [PATCH] 修改卖相关功能 --- third_data/data_server.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/third_data/data_server.py b/third_data/data_server.py index 5f2d6ad..a0a06ab 100644 --- a/third_data/data_server.py +++ b/third_data/data_server.py @@ -560,7 +560,7 @@ code = d[0] limit_up_reasons[code] = d[5] codes_set.add(code) - if code.find("00") == 0 or code.find("60") == 0: + if tool.is_shsz_code(code): limit_up_time = time.strftime("%H:%M:%S", time.localtime(d[2])) code_price_manager.Buy1PriceManager().set_limit_up_time(code, limit_up_time) add_codes = codes_set - self.__latest_limit_up_codes_set @@ -579,7 +579,7 @@ if add_codes: for code in add_codes: # 鏍规嵁娑ㄥ仠鍘熷洜鍒ゆ柇鏄惁鍙互涔� - if code.find("00") == 0 or code.find("60") == 0: + if tool.is_shsz_code(code): try: # 鍒ゆ柇鏄惁涓嬪崟 trade_state = trade_manager.CodesTradeStateManager().get_trade_state(code) -- Gitblit v1.8.0