Merge pull request #1365 from mishaker/edge_position
Fix edge position sizing.
This commit is contained in:
@@ -302,7 +302,12 @@ class FreqtradeBot(object):
|
||||
:return: float: Stake Amount
|
||||
"""
|
||||
if self.edge:
|
||||
stake_amount = self.edge.stake_amount(pair)
|
||||
return self.edge.stake_amount(
|
||||
pair,
|
||||
self.wallets.get_free(self.config['stake_currency']),
|
||||
self.wallets.get_total(self.config['stake_currency']),
|
||||
Trade.total_open_trades_stakes()
|
||||
)
|
||||
else:
|
||||
stake_amount = self.config['stake_amount']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user