From 21c96ed504f93f16ce6f8a3ccf164a87c9edd9c0 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期二, 30 一月 2024 15:45:23 +0800
Subject: [PATCH] 增加调试日志

---
 l2/l2_data_util.py |   22 +++++++++++++++++-----
 1 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/l2/l2_data_util.py b/l2/l2_data_util.py
index 34fce3c..9abfa2b 100644
--- a/l2/l2_data_util.py
+++ b/l2/l2_data_util.py
@@ -244,7 +244,7 @@
     price = float(val["price"])
     money = price * int(val["num"])
     if price > 3.0:
-        if money >= 30000:
+        if money >= 29900:
             return True
         else:
             return False
@@ -408,11 +408,16 @@
 
         if int(val["operateType"]) != 2:
             return False
+        return True
 
-        price = float(val["price"])
-        num = int(val["num"])
-        # if price * num * 100 < 50 * 10000:
-        #     return False
+    # 娑ㄥ仠鍗栨挙
+    @classmethod
+    def is_limit_up_price_sell_cancel(cls, val):
+        if int(val["limitPrice"]) != 1:
+            return False
+
+        if int(val["operateType"]) != 3:
+            return False
         return True
 
     # 鏄惁娑ㄥ仠涔版挙
@@ -444,6 +449,13 @@
             return True
         return False
 
+    # 鏄惁涓轰拱
+    @classmethod
+    def is_buy(cls, val):
+        if int(val["operateType"]) == 0:
+            return True
+        return False
+
     # l2鏃堕棿宸��
     @classmethod
     def time_sub_as_ms(cls, val1, val2):

--
Gitblit v1.8.0