From 32327c45c24d7b50a35cabf37dd487a458639403 Mon Sep 17 00:00:00 2001 From: gcarq Date: Tue, 7 Nov 2017 22:26:44 +0100 Subject: [PATCH] set close_date on sell_order update --- freqtrade/persistence.py | 1 + 1 file changed, 1 insertion(+) diff --git a/freqtrade/persistence.py b/freqtrade/persistence.py index 41c9cadcb..724ad7dcb 100644 --- a/freqtrade/persistence.py +++ b/freqtrade/persistence.py @@ -92,6 +92,7 @@ class Trade(_DECL_BASE): # Set close rate and set actual profit self.close_rate = order['rate'] self.close_profit = self.calc_profit() + self.close_date = datetime.utcnow() else: raise ValueError('Unknown order type: {}'.format(order['type']))