Merge pull request #2921 from hroff-1902/adjust-buy-notification
Move rpc send to be after db session add/flash
This commit is contained in:
commit
ab27d2c720
@ -527,8 +527,6 @@ class FreqtradeBot:
|
||||
ticker_interval=timeframe_to_minutes(self.config['ticker_interval'])
|
||||
)
|
||||
|
||||
self._notify_buy(trade, order_type)
|
||||
|
||||
# Update fees if order is closed
|
||||
if order_status == 'closed':
|
||||
self.update_trade_state(trade, order)
|
||||
@ -539,6 +537,8 @@ class FreqtradeBot:
|
||||
# Updating wallets
|
||||
self.wallets.update()
|
||||
|
||||
self._notify_buy(trade, order_type)
|
||||
|
||||
return True
|
||||
|
||||
def _notify_buy(self, trade: Trade, order_type: str) -> None:
|
||||
|
Loading…
Reference in New Issue
Block a user