diff --git a/lib/hub/hub_bridge_register.py b/lib/hub/hub_bridge_register.py index 16dbd35..51a19bd 100644 --- a/lib/hub/hub_bridge_register.py +++ b/lib/hub/hub_bridge_register.py @@ -189,6 +189,20 @@ def _enrich_hub_protocol(snap: dict[str, Any], *, app_module: Any) -> dict[str, from datetime import datetime out["ts"] = datetime.now().strftime("%Y-%m-%d %H:%M:%S") + quotes = {"tickers": [], "updated_at": out.get("ts") or ""} + try: + from lib.market.nav_spot_tickers_lib import build_nav_spot_tickers + + ex = getattr(app_module, "exchange", None) + reset_hour = int(getattr(app_module, "TRADING_DAY_RESET_HOUR", 8) or 8) + tickers = build_nav_spot_tickers(ex, reset_hour=reset_hour) if ex is not None else [] + quotes = { + "tickers": tickers if isinstance(tickers, list) else [], + "updated_at": out.get("ts") or "", + } + except Exception: + pass + out["quotes"] = quotes return out