Fix typo. Make sure trade is market open.

This commit is contained in:
Reigo Reinmets 2021-12-19 10:36:47 +02:00
parent 3aca3a7133
commit 5da38f3613
1 changed files with 2 additions and 1 deletions

View File

@ -617,8 +617,9 @@ class FreqtradeBot(LoggingMixin):
timeframe=timeframe_to_minutes(self.config['timeframe'])
)
trade.is_open = True
trade.fee_open_currency = None
trade.fee_open_currency = order_id
trade.open_order_id = order_id
trade.orders.append(order_obj)
trade.recalc_trade_from_orders()
Trade.query.session.add(trade)