From 524c52ccf6405fc60da357475e19ee20deb8efae Mon Sep 17 00:00:00 2001 From: Marc Blatter Date: Sat, 4 Jul 2026 15:10:01 +0200 Subject: [PATCH] Bot auto-update: src/main_ml.py --- src/main_ml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main_ml.py b/src/main_ml.py index daa83d7..5f91d58 100644 --- a/src/main_ml.py +++ b/src/main_ml.py @@ -39,7 +39,7 @@ class Bot: qty_usdt = usdt * 0.5 if qty_usdt < 10: return None - qty = qty_usdt / price + qty = round(qty_usdt / price, 4) order = self.binance.order_market_buy(symbol=pair, quantity=qty) logger.info(f"Buy: {pair} x{qty:.4f} @ ${price:.2f}") self.current_trades[pair] = {