Merge pull request #2576 from hroff-1902/fix/get_min_pair_stake_amount

Fix _get_min_pair_stake_amount
This commit is contained in:
Matthias
2019-11-27 19:28:52 +01:00
committed by GitHub
3 changed files with 39 additions and 14 deletions

View File

@@ -266,7 +266,11 @@ class FreqtradeBot:
amount_reserve_percent += self.strategy.stoploss
# it should not be more than 50%
amount_reserve_percent = max(amount_reserve_percent, 0.5)
return min(min_stake_amounts) / amount_reserve_percent
# The value returned should satisfy both limits: for amount (base currency) and
# for cost (quote, stake currency), so max() is used here.
# See also #2575 at github.
return max(min_stake_amounts) / amount_reserve_percent
def create_trades(self) -> bool:
"""