chore: don't allow negative stake amounts

This commit is contained in:
Matthias
2024-12-08 10:20:21 +01:00
parent 489db37bbd
commit 8dc322d7f2

View File

@@ -339,7 +339,7 @@ class Wallets:
f"lower than stake amount ({stake_amount} {self._config['stake_currency']})"
)
return stake_amount
return max(stake_amount, 0)
def get_trade_stake_amount(
self, pair: str, max_open_trades: IntOrInf, edge=None, update: bool = True