l2/transaction_progress.py
@@ -189,7 +189,7 @@ def set_traded_index(self, code, index, total_datas = None): last_info = self.latest_buy_progress_index_cache.get(code) if not last_info or last_info[0] != index: if last_info: if last_info and total_datas: val = total_datas[last_info[0]]['val'] rate = round(val["num"] * float(val["price"]) * 100 / (time.time() - last_info[1])) # 成交速率