Administrator
2023-10-30 fb47d36048e94b9a506d5c153e3dd19a01e37df1
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