Merge pull request #4513 from freqtrade/fix/4511
Fix stoploss order problem with FTX
This commit is contained in:
@@ -432,7 +432,7 @@ class LocalTrade():
|
||||
self.close_rate_requested = self.stop_loss
|
||||
if self.is_open:
|
||||
logger.info(f'{order_type.upper()} is hit for {self}.')
|
||||
self.close(order['average'])
|
||||
self.close(safe_value_fallback(order, 'average', 'price'))
|
||||
else:
|
||||
raise ValueError(f'Unknown order type: {order_type}')
|
||||
cleanup_db()
|
||||
|
Reference in New Issue
Block a user