Administrator
2024-10-31 b855b811e3753ffcb35f145c985bb32f4b550038
utils/tool.py
@@ -54,6 +54,11 @@
    return time_str
def get_now_time_as_int():
    time_str = datetime.datetime.now().strftime("%H:%M:%S")
    return int(time_str.replace(":", ""))
def get_now_time_with_ms_str():
    now = datetime.datetime.now()
    ms = int(now.microsecond / 1000)
@@ -307,7 +312,7 @@
        return round(get_buy_min_price(price) - 0.03, 2)
    else:
        # 大股价直接向下取2%
        return round(price*(1-0.02), 2)
        return round(price * (1 - 0.02), 2)
if __name__ == "__main__":