edge real position sizing drafted

This commit is contained in:
misagh
2018-11-26 21:06:32 +01:00
parent 2135976cb8
commit f5a70750f0
2 changed files with 16 additions and 4 deletions

View File

@@ -333,7 +333,9 @@ class FreqtradeBot(object):
:return: float: Stake Amount
"""
if self.edge:
stake_amount = self.edge.stake_amount(pair)
stake_amount = self.edge.stake_amount(
pair, self.wallets.get_free(self.config['stake_currency'])
)
else:
stake_amount = self.config['stake_amount']