From 99b5f2b72819698d2642b01b931d29e68b3140c4 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期一, 30 十月 2023 14:38:19 +0800 Subject: [PATCH] bug修复 --- l2/transaction_progress.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/l2/transaction_progress.py b/l2/transaction_progress.py index 551d6cf..9e38792 100644 --- a/l2/transaction_progress.py +++ b/l2/transaction_progress.py @@ -190,7 +190,7 @@ last_info = self.latest_buy_progress_index_cache.get(code) if not last_info or last_info[0] != index: if last_info: - val = total_datas[last_info[0]] + val = total_datas[last_info[0]]['val'] rate = round(val["num"] * float(val["price"]) * 100 / (time.time() - last_info[1])) # 鎴愪氦閫熺巼 self.trade_speed_cache[code] = rate -- Gitblit v1.8.0