Call update_open_order inline with buy
captures FOK / market orders
This commit is contained in:
parent
8f4cca47e9
commit
f11a1b0122
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user