feat: push chart tail candles over SSE for faster market refresh

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-08 12:24:25 +08:00
parent 4918699276
commit e68e29629e
4 changed files with 141 additions and 49 deletions
+2
View File
@@ -214,6 +214,8 @@ async def _run_chart_poll() -> dict:
ok=bool(result.get("ok")),
fetched=int(result.get("fetched") or 0),
error=None if result.get("ok") else str(result.get("msg") or "poll_failed"),
candles=result.get("candles") if result.get("ok") else None,
price_tick=result.get("price_tick"),
)
if not result.get("ok"):
errors.append(f"{key}:{result.get('msg')}")