Use correct order_id for ftx

closes #4511
This commit is contained in:
Matthias
2021-05-16 09:08:13 +02:00
parent 32bdceee12
commit 0b1dd0d203
4 changed files with 34 additions and 2 deletions

View File

@@ -1427,8 +1427,8 @@ class FreqtradeBot(LoggingMixin):
"""
fee-detection fallback to Trades. Parses result of fetch_my_trades to get correct fee.
"""
trades = self.exchange.get_trades_for_order(order['id'], trade.pair,
trade.open_date)
trades = self.exchange.get_trades_for_order(self.exchange.get_order_id_conditional(order),
trade.pair, trade.open_date)
if len(trades) == 0:
logger.info("Applying fee on amount for %s failed: myTrade-Dict empty found", trade)