exchange.get_max_pair_stake_amount hard set leverage to 0

This commit is contained in:
Sam Germain
2022-02-04 14:26:15 -06:00
parent c0a593280e
commit 8b57827676
4 changed files with 22 additions and 26 deletions

View File

@@ -690,9 +690,8 @@ class Exchange:
self,
pair: str,
price: float,
stoploss: float
) -> float:
max_stake_amount = self._get_stake_amount_limit(pair, price, stoploss, 'max')
max_stake_amount = self._get_stake_amount_limit(pair, price, 0.0, 'max')
if max_stake_amount is None:
# * Should never be executed
raise OperationalException(f'{self.name}.get_max_pair_stake_amount should'