Skip to content

fix: market hub WS 1009, user-hub stale reconnect, stats await, Practice live lookup - #132

Merged
TexasCoding merged 1 commit into
mainfrom
fix/issues-128-131
Aug 31, 2026
Merged

fix: market hub WS 1009, user-hub stale reconnect, stats await, Practice live lookup#132
TexasCoding merged 1 commit into
mainfrom
fix/issues-128-131

Conversation

@TexasCoding

Copy link
Copy Markdown
Owner

Summary

v4.1.2 PATCH for live TradingSuite issues #128#131.

Test plan

  • tests/realtime/test_async_hub.py — 1 MiB frame cap; stop/start recreates client
  • tests/realtime/test_health_monitoring.py — user hub silence is not stale; market freeze still reconnects; watchdog self-stop does not spawn a second loop; reconnect waits for hub run() to finish
  • tests/statistics/test_statistics_module.py — async get_stats() is awaited; timeout does not return fallback dict
  • tests/client/test_market_data.py — live=True empty list falls back; live=False still raises; success=false does not fallback
  • uv run pytest tests/ --ignore=tests/benchmarks/ (3175 passed before review follow-ups; targeted suites green after)
  • uv run ruff check src/ and .venv/bin/python -m mypy src/

Fixes #128
Fixes #129
Fixes #130
Fixes #131

…ice live lookup

v4.1.2: raise SignalR max_size to 1 MiB (#128), ignore user-hub silence
and recreate the hub client on stop (#129), await async get_stats()
(#130), and fall back get_instrument(live=True) to sim contracts (#131).
@TexasCoding
TexasCoding merged commit 524e79e into main Aug 31, 2026
7 checks passed
@TexasCoding
TexasCoding deleted the fix/issues-128-131 branch August 31, 2026 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment