BUG: fixed potential issue with refreshing the stats in live mode

This commit is contained in:
Frederic Fortier
2018-01-04 22:46:21 -05:00
parent b4e7629e8b
commit 79e4854973
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -680,7 +680,7 @@ class ExchangeTradingAlgorithmLive(ExchangeTradingAlgorithmBase):
if new_orders != self._last_orders:
self.performance_needs_update = True
self._last_orders = new_orders
self._last_orders = copy.deepcopy(new_orders)
if self.performance_needs_update:
self.perf_tracker.update_performance()