From 4b2104b79eaafe12f81cd84902b441202ee90897 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期一, 08 四月 2024 16:54:45 +0800
Subject: [PATCH] 测试激进买1手

---
 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 0126933..7aa6f4a 100644
--- a/l2/l2_data_manager_new.py
+++ b/l2/l2_data_manager_new.py
@@ -1659,6 +1659,9 @@
                     threshold_money += val["num"] * int(float(val["price"]) * 100)
                 elif L2DataUtil.is_sell_cancel(val):
                     threshold_money -= val["num"] * int(float(val["price"]) * 100)
+                elif L2DataUtil.is_buy(val):
+                    # TODO 鍒ゆ柇浠锋牸锛堝ぇ浜庝拱1锛� 琚拱鍚冩帀
+                    threshold_money -= val["num"] * int(float(val["price"]) * 100)
             # 绗簩姝ワ細璁$畻璧峰淇″彿
             second_930 = 9 * 3600 + 30 * 60 + 0
             total_datas = local_today_datas.get(code)
@@ -2147,8 +2150,8 @@
             if not trigger_buy:
                 not_buy_msg = f"銆恵i}銆戞病鏈変拱鍗曡Е鍙�"
                 continue
-            if buy_count < 2:
-                not_buy_msg = f"銆恵i}銆戝畨鍏ㄧ瑪鏁颁笉瓒筹紝{buy_count}/{2}"
+            if buy_count < 3:
+                not_buy_msg = f"銆恵i}銆戝畨鍏ㄧ瑪鏁颁笉瓒筹紝{buy_count}/{3}"
                 continue
 
             # max_buy_num_set = cls.__filter_not_deal_indexes(code, max_buy_num_set)

--
Gitblit v1.8.0