Trades DB is not update when a trade is sold until the next loop around
all the pairs. This may be minutes in a configuraton with 60-100 pairs. This change udpates the trade db on sale so it better reflects the state of play.
This commit is contained in:
parent
41a5d96d90
commit
198d2eec23
@ -619,6 +619,9 @@ class FreqtradeBot(object):
|
||||
trade.open_order_id = order_id
|
||||
trade.close_rate_requested = limit
|
||||
|
||||
# Update Trade DB to show the trade as sold.
|
||||
self.process_maybe_execute_sell(trade)
|
||||
|
||||
profit_trade = trade.calc_profit(rate=limit)
|
||||
current_rate = self.exchange.get_ticker(trade.pair)['bid']
|
||||
profit_percent = trade.calc_profit_percent(limit)
|
||||
|
Loading…
Reference in New Issue
Block a user