From 365491c1fcf523994035e4bd28d8b5872dd6ec98 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期四, 31 七月 2025 14:47:48 +0800
Subject: [PATCH] 除权采用掘金更新K线

---
 l2/l2_data_source_util.py |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/l2/l2_data_source_util.py b/l2/l2_data_source_util.py
index 9a0eb25..4288c1b 100644
--- a/l2/l2_data_source_util.py
+++ b/l2/l2_data_source_util.py
@@ -129,7 +129,8 @@
             try:
                 cancel_datas.sort(key=lambda t: t["index"])
             except Exception as e:
-                print("娴嬭瘯")
+                # print("娴嬭瘯")
+                pass
             for item in cancel_datas:
                 # 鎻愬墠鍋氳绠�
                 cls.__get_buy_index_with_cancel_data(code, item, local_today_num_operate_map)
@@ -191,6 +192,22 @@
         else:
             return data["re"]
 
+    @classmethod
+    def get_limit_up_buy_canceled_data_v2(cls, code, index, total_data, canceled_buyno_map):
+        data = None
+        try:
+            data = total_data[index]
+        except Exception as e:
+            logger_l2_error.error(
+                f"鏈壘鍒颁拱鍏ョ储寮曞搴旂殑鏁版嵁锛歩ndex-{index} total_data闀垮害-{len(total_data) if total_data else 0} 閿欒鍘熷洜锛歿str(e)}")
+        val = data["val"]
+        order_no = str(val["orderNo"])
+        canceled_data = canceled_buyno_map.get(order_no)
+        if canceled_data:
+            return canceled_data
+        else:
+            return None
+
 
 # if __name__ == "__main__":
 #     code = "000925"

--
Gitblit v1.8.0