total amount passed to edge should consider open trades too

This commit is contained in:
misagh
2018-12-03 19:45:00 +01:00
parent a5414b8437
commit b5192193fd
2 changed files with 13 additions and 1 deletions

View File

@@ -305,7 +305,8 @@ class FreqtradeBot(object):
return self.edge.stake_amount(
pair,
self.wallets.get_free(self.config['stake_currency']),
self.wallets.get_total(self.config['stake_currency'])
self.wallets.get_total(self.config['stake_currency']) +
Trade.calc_total_open_trades_in_stake_currency()
)
else:
stake_amount = self.config['stake_amount']