Check min-trade-stake in backtesting

This commit is contained in:
Matthias
2021-02-20 07:20:51 +01:00
parent f04f07299c
commit 52acacbed5
3 changed files with 11 additions and 2 deletions

View File

@@ -273,7 +273,9 @@ class Backtesting:
pair, max_open_trades - open_trade_count, None)
except DependencyException:
stake_amount = 0
if stake_amount:
min_stake_amount = self.exchange.get_min_pair_stake_amount(pair, row[OPEN_IDX], -0.05)
if stake_amount and stake_amount > min_stake_amount:
# print(f"{pair}, {stake_amount}")
# Enter trade
trade = Trade(
pair=pair,