exchange.get_max_pair_stake_amount hard set leverage to 0
This commit is contained in:
@@ -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'
|
||||
|
Reference in New Issue
Block a user