From 3a8a4a33733062c68885584dd3746d638e98e1f8 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期四, 28 三月 2024 18:29:56 +0800
Subject: [PATCH] 不统计被动卖

---
 test/test_sell.py |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/test/test_sell.py b/test/test_sell.py
index 74fa566..43be45f 100644
--- a/test/test_sell.py
+++ b/test/test_sell.py
@@ -1,4 +1,5 @@
 from l2.l2_transaction_data_manager import HuaXinSellOrderStatisticManager
+from l2 import l2_data_util
 from log_module import log_export, async_log_util
 from utils import tool
 
@@ -16,21 +17,20 @@
 
 
 def test_sell_order_info():
-    code = "603967"
+    code = "600506"
+    l2_data_util.load_l2_data(code, force=True)
     date = tool.get_now_date_str()
     data_map = log_export.load_huaxin_transaction_map(date=date)
     datas = data_map.get(code)
     start_print = False
     for i in range(len(datas)):
         d = datas[i]
-        if d[0][7] == 11181370:
-            start_print = True
-        if start_print:
-            print(d)
+        if i == 1653:
+            print("璋冭瘯")
         big_sell_order_info = HuaXinSellOrderStatisticManager.add_transaction_datas(code, d)
         if big_sell_order_info[0] < 50 * 10000:
             continue
-        # print(big_sell_order_info)
+        print(i, sum([ x[1]*x[2] for x in big_sell_order_info[1]]), big_sell_order_info)
 
 
 if __name__ == '__main__':

--
Gitblit v1.8.0