fix(HEL-356): restore intraday turnover context

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
总管
2026-09-09 11:41:44 +08:00
co-authored by multica-agent
parent abee8306be
commit 5f343a6bae
5 changed files with 34 additions and 10 deletions
+1 -2
View File
@@ -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 {