mirror of
https://github.com/wassname/catalyst.git
synced 2026-09-10 11:50:32 +08:00
BUG: fixed potential issue with refreshing the stats in live mode
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user