Ensure commit happens on forcebuy

This commit is contained in:
Matthias 2021-05-21 14:11:02 +02:00
parent a01d05997e
commit 17f74f7da8
1 changed files with 1 additions and 0 deletions

View File

@ -615,6 +615,7 @@ class RPC:
# execute buy
if self._freqtrade.execute_buy(pair, stakeamount, price, forcebuy=True):
Trade.commit()
trade = Trade.get_trades([Trade.is_open.is_(True), Trade.pair == pair]).first()
return trade
else: