Administrator
2023-02-05 1252c9489b631905fbce608109260760537b224f
l2_data_util.py
@@ -26,6 +26,28 @@
    return decorator
# 是否为大单
def is_big_money(val):
    price = float(val["price"])
    money = price * int(val["num"])
    if price > 3.0:
        if money >= 30000:
            return True
        else:
            return False
    else:
        max_money = price * 10000
        if money >= max_money * 0.95:
            return True
        else:
            return False
    # if int(val["num"]) >= constant.BIG_MONEY_NUM:
    #     return True
    # if int(val["num"]) * limit_up_price >= constant.BIG_MONEY_AMOUNT:
    #     return True
    # return False_
def compare_time(time1, time2):
    result = int(time1.replace(":", "", 2)) - int(time2.replace(":", "", 2))
    return result