Administrator
2024-07-01 01f581fbb9f7a2a49a57520a8980cf75b9c6b864
code_attribute/code_volumn_manager.py
@@ -93,7 +93,12 @@
    max60, yesterday = get_histry_volumn(code)
    if today is None:
        today = 0
    if today is None or max60 is None or yesterday is None:
    if max60 is None or yesterday is None:
        max60 = [today, '']
        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: