Fixed TypeError

This commit is contained in:
ZerGo0 2021-08-21 13:42:27 +02:00 committed by GitHub
parent 7b9dd8424b
commit c102cbcecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -324,7 +324,7 @@ class LocalTrade():
'profit_pct': round(self.close_profit * 100, 2) if self.close_profit else None,
'profit_abs': self.close_profit_abs,
'sell_reason': self.sell_reason + (f' ({self.buy_tag})' if self.buy_tag else ''),
'sell_reason': str(self.sell_reason) + (f' ({self.buy_tag})' if self.buy_tag else ''),
'sell_order_status': self.sell_order_status,
'stop_loss_abs': self.stop_loss,
'stop_loss_ratio': self.stop_loss_pct if self.stop_loss_pct else None,