From ba52d7ac92a36f413eacaa686f8535e859664ec6 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期一, 28 八月 2023 09:45:11 +0800 Subject: [PATCH] bug修改 --- third_data/data_server.py | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/third_data/data_server.py b/third_data/data_server.py index 046a245..24bb2de 100644 --- a/third_data/data_server.py +++ b/third_data/data_server.py @@ -393,7 +393,7 @@ trade_state = trade_manager.CodesTradeStateManager().get_trade_state_cache(code) if trade_state == trade_manager.TRADE_STATE_BUY_PLACE_ORDER or trade_state == trade_manager.TRADE_STATE_BUY_DELEGATED or trade_state == trade_manager.TRADE_STATE_BUY_SUCCESS: - hcancel_datas_dict, cancel_indexes_set = HourCancelBigNumComputer.get_watch_index_dict(code) + hcancel_datas_dict, cancel_indexes_set = HourCancelBigNumComputer().get_watch_index_dict(code) # 鏍规嵁鏃ュ織璇诲彇瀹炴椂鐨勮绠楁暟鎹� h_cancel_latest_compute_info = log_export.get_h_cancel_compute_info(code) if hcancel_datas_dict: @@ -499,7 +499,7 @@ code = d[0] if code.find("00") == 0 or code.find("60") == 0: limit_up_time = time.strftime("%H:%M:%S", time.localtime(d[2])) - code_price_manager.Buy1PriceManager.set_limit_up_time(code, limit_up_time) + code_price_manager.Buy1PriceManager().set_limit_up_time(code, limit_up_time) self.__kplDataManager.save_data(type_, result_list) kpl_data_manager.KPLLimitUpDataRecordManager.save_record(tool.get_now_date_str(), result_list) elif type_ == KPLDataType.OPEN_LIMIT_UP.value: @@ -566,7 +566,9 @@ def run(addr, port): # 杩愯鐪嬬洏娑堟伅閲囬泦 - kp_client_msg_manager.run_capture() + # kp_client_msg_manager.run_capture() + kpl_data_manager.run_pull_task() + handler = DataServer # httpd = socketserver.TCPServer((addr, port), handler) httpd = ThreadedHTTPServer((addr, port), handler) -- Gitblit v1.8.0