feat: push chart tail candles over SSE for faster market refresh
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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')}")
|
||||
|
||||
Reference in New Issue
Block a user