fix(HEL-356): restore intraday turnover context
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -22,8 +22,7 @@ class HubRealtimeProxy:
|
||||
except RealtimeAggregateError as exc:
|
||||
error = str(exc)
|
||||
epochs = [int(item.get("quote_time_epoch") or 0) for item in indices]
|
||||
now = datetime.now().astimezone()
|
||||
max_skew = 120 if now.hour >= 15 else 15
|
||||
max_skew = 120
|
||||
index_consistent = bool(epochs) and max(epochs) - min(epochs) <= max_skew
|
||||
ready = len(indices) == 3 and index_consistent
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user