fix flake8

This commit is contained in:
grillzoo
2021-04-15 21:38:00 +01:00
parent ce23d9dfee
commit 5e51ba6258
2 changed files with 5 additions and 2 deletions

View File

@@ -541,7 +541,7 @@ class Exchange:
DEFAULT_AMOUNT_RESERVE_PERCENT)
amount_reserve_percent = (
amount_reserve_percent / (1 - abs(stoploss)) if abs(stoploss) != 1 else 1.5
)
)
# it should not be more than 50%
amount_reserve_percent = max(min(amount_reserve_percent, 1.5), 1)