From fa585f59d291097b1cefb2f58cead999f042d169 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期三, 10 一月 2024 17:42:40 +0800
Subject: [PATCH] 添加推送消息/有辨识度的选票逻辑更改/自由市值条件修改

---
 l2/transaction_progress.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/l2/transaction_progress.py b/l2/transaction_progress.py
index 37a1f1d..64c8221 100644
--- a/l2/transaction_progress.py
+++ b/l2/transaction_progress.py
@@ -188,6 +188,8 @@
     # 璁剧疆浜ゆ槗杩涘害
     def set_traded_index(self, code, index, total_datas = None):
         last_info = self.latest_buy_progress_index_cache.get(code)
+        # 浜ゆ槗杩涘害鏄惁鏀瑰彉
+        traded_index_changed = False
         if not last_info or last_info[0] != index:
             if last_info and total_datas:
                 val = total_datas[last_info[0]]['val']
@@ -196,7 +198,9 @@
                     # 鎴愪氦閫熺巼
                     self.trade_speed_cache[code] = rate
             self.latest_buy_progress_index_cache[code] = (index, time.time())
+            traded_index_changed = True
         self.__save_buy_progress_index(code, index, False)
+        return traded_index_changed
 
     # 鑾峰彇鎴愪氦閫熺巼
     def get_trade_speed(self, code):

--
Gitblit v1.8.0