code_attribute/code_volumn_manager.py
@@ -86,6 +86,11 @@ return _volumn # 获取今日量 def get_today_volumn_cache(code): return global_util.today_volumn.get(code) # 获取量比(今日量/max(60天最大量,昨日量)) # 将总卖量计算在内 def get_volume_rate(code, total_sell_volume=0, with_info=False): @@ -98,8 +103,6 @@ yesterday = today if max60[0] < 1: max60[0] = 1 raise Exception(f"获取量失败:{code}") rate = round((int(today) + total_sell_volume) / max(int(max60[0]), int(yesterday)), 2) if not with_info: return rate