Administrator
2024-10-09 deb26c8b90f9d67c340b3a757740085ac8dd5743
utils/tool.py
@@ -377,7 +377,11 @@
def get_buy_volume(limit_up_price):
    count = (constant.BUY_MONEY_PER_CODE // int(round(float(limit_up_price) * 100))) * 100
    return get_buy_volume_by_money(limit_up_price, constant.BUY_MONEY_PER_CODE)
def get_buy_volume_by_money(limit_up_price, money):
    count = (money // int(round(float(limit_up_price) * 100))) * 100
    if count < 100:
        count = 100
    return count