Merge pull request #4775 from freqtrade/fix_wallet_unlimited

Fix wallet unlimited
This commit is contained in:
Matthias
2021-04-24 15:54:06 +02:00
committed by GitHub
8 changed files with 59 additions and 53 deletions

View File

@@ -607,8 +607,7 @@ class RPC:
raise RPCException(f'position for {pair} already open - id: {trade.id}')
# gen stake amount
stakeamount = self._freqtrade.wallets.get_trade_stake_amount(
pair, self._freqtrade.get_free_open_trades())
stakeamount = self._freqtrade.wallets.get_trade_stake_amount(pair)
# execute buy
if self._freqtrade.execute_buy(pair, stakeamount, price, forcebuy=True):