mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-06 05:14:38 +08:00
BUG: Move minutely performance period end time forward in time.
The end time of the performance period during minutely emission should move forward with the events' dt, not be static.
This commit is contained in:
@@ -266,6 +266,7 @@ class PerformanceTracker(object):
|
||||
messages.append(self.handle_market_close())
|
||||
elif self.emission_rate == 'minute':
|
||||
if event.dt > self.saved_dt:
|
||||
self.todays_performance.period_close = self.saved_dt
|
||||
messages.append(self.to_dict())
|
||||
self.saved_dt = event.dt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user