From ff6d60a42364ba8e2d0d5cfb5504454bee8017ad Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期四, 05 九月 2024 15:38:09 +0800
Subject: [PATCH] L2数据输出接口修改

---
 l2/l2_data_manager_new.py |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/l2/l2_data_manager_new.py b/l2/l2_data_manager_new.py
index d3450d5..e93e0b5 100644
--- a/l2/l2_data_manager_new.py
+++ b/l2/l2_data_manager_new.py
@@ -978,6 +978,8 @@
                         # 鐐告澘鏃堕棿鍦ㄤ袱娆′笅鍗曟椂闂翠腑闂�
                         is_limit_up_buy = False
                 if is_limit_up_buy:
+                    # 鏉夸笂涔颁笖闈炲姞缁�
+
                     # 鍒ゆ柇鎴愪氦杩涘害鍒板綋鍓嶆暟鎹殑绗旀暟锛屽鏋滃皯浜�10绗斾笖杩樻湁鏈垚浜ょ殑澶у崟锛�>=299锛夊氨鍙互涓嬪崟
                     trade_index, is_default = cls.__TradeBuyQueue.get_traded_index(code)
                     if trade_index is None:
@@ -1045,7 +1047,7 @@
                                                                                 total_datas[-1]["index"],
                                                                                 limit_up_price, min_money)
                 if left_count < 1:
-                    return False, False, f"绗瑊place_order_count + 1}涓嬪崟鏃犲緟鎴愪氦鐨勫ぇ鍗�", False
+                    return False, False, f"绗瑊place_order_count + 1}娆′笅鍗曟棤寰呮垚浜ょ殑澶у崟", False
 
             # -------鍒ゆ柇鏄惁鏄噺鍖栦笅鍗曪紝濡傛灉鏄氨涓嶈窡鍒颁笅鍗�--------
             # 閲嶈锛氶噺鍖栦笅鍗曚細澧炲姞涓嬪崟娆℃暟锛屾澘鍧椾笅鍗曚腑鏈変笅鍗曟鏁扮殑浣跨敤锛屾墍浠ユ澘鍧楅渶瑕佸湪閲忓寲鍒ゆ柇涔嬪墠
@@ -1054,7 +1056,8 @@
             if range_indexes:
                 # 鏄惁鏄噺鍖栧崟
                 is_quantization_result = buy_strategy_util.is_quantization(code, range_indexes[0], range_indexes[1])
-                if is_quantization_result[0]:
+                if is_quantization_result[0] and not gpcode_manager.GreenListCodeManager().is_in_cache(code):
+                    # 閲忓寲鍗曚笖娌℃湁鍔犵豢
                     cls.__next_buy_time_dict[code] = is_quantization_result[1]
                     return False, True, is_quantization_result[2], True
         return True, False, "婊¤冻涓嬪崟鏉′欢", True

--
Gitblit v1.8.0