From ba23a5970dfb6c2c5cdf2f84b75ca4cddab0b4d3 Mon Sep 17 00:00:00 2001 From: admin <admin@example.com> Date: 星期五, 18 四月 2025 14:09:55 +0800 Subject: [PATCH] 买价修改 --- utils/tool.py | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/utils/tool.py b/utils/tool.py index feb63de..a8d60c5 100644 --- a/utils/tool.py +++ b/utils/tool.py @@ -296,8 +296,10 @@ # 鑾峰彇涔板叆浠锋牸绗煎瓙鐨勬渶楂樹环 def get_buy_max_price(price, is_cb=False): - # price1 = price * (1 + 0.015) # 鏈嶅姟鍣ㄧ増 - price1 = price * (1 + 0.005) # 鏈湴鐗� + if not constant.IS_SIMULATED_TRADE: + price1 = price * (1 + 0.015) # 鏈嶅姟鍣ㄧ増 + else: + price1 = price * (1 + 0.005) # 鏈湴鐗� if is_cb: price1 = math.ceil(price1 * 1000) / 1000 else: -- Gitblit v1.8.0