Bot auto-update: src/main_ml.py
This commit is contained in:
parent
0b41ba1657
commit
524c52ccf6
|
|
@ -39,7 +39,7 @@ class Bot:
|
||||||
qty_usdt = usdt * 0.5
|
qty_usdt = usdt * 0.5
|
||||||
if qty_usdt < 10:
|
if qty_usdt < 10:
|
||||||
return None
|
return None
|
||||||
qty = qty_usdt / price
|
qty = round(qty_usdt / price, 4)
|
||||||
order = self.binance.order_market_buy(symbol=pair, quantity=qty)
|
order = self.binance.order_market_buy(symbol=pair, quantity=qty)
|
||||||
logger.info(f"Buy: {pair} x{qty:.4f} @ ${price:.2f}")
|
logger.info(f"Buy: {pair} x{qty:.4f} @ ${price:.2f}")
|
||||||
self.current_trades[pair] = {
|
self.current_trades[pair] = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue