Administrator
2024-06-14 1471480f5307d9f75b6e87e246cc14c131fb4639
code_attribute/code_volumn_manager.py
@@ -91,6 +91,8 @@
def get_volume_rate(code, total_sell_volume=0, with_info=False):
    today = get_today_volumn(code)
    max60, yesterday = get_histry_volumn(code)
    if today is None:
        today = 0
    if today is None or max60 is None or yesterday is None:
        raise Exception(f"获取量失败:{code}")
    rate = round((int(today) + total_sell_volume) / max(int(max60[0]), int(yesterday)), 2)