Comment added

This commit is contained in:
hroff-1902 2019-11-27 14:53:01 +03:00
parent f2cd4fdafe
commit a373e48939
1 changed files with 4 additions and 0 deletions

View File

@ -266,6 +266,10 @@ class FreqtradeBot:
amount_reserve_percent += self.strategy.stoploss
# it should not be more than 50%
amount_reserve_percent = max(amount_reserve_percent, 0.5)
# 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: