Call update_open_order inline with buy

captures FOK / market orders
This commit is contained in:
Matthias 2019-03-31 15:40:16 +02:00
parent 8f4cca47e9
commit f11a1b0122

View File

@ -500,6 +500,10 @@ class FreqtradeBot(object):
ticker_interval=constants.TICKER_INTERVAL_MINUTES[self.config['ticker_interval']]
)
# Update fees if order is closed already.
if order_status == 'closed':
self.update_open_order(trade, order)
Trade.session.add(trade)
Trade.session.flush()