Why this is useful
Mock mode currently does implement /ws/quotes (see backend/app/routes/mock.py), but only with a fixed 1-second tick. We should let the cadence and jitter shape be tweakable so contributors can stress-test the chart's UI under fast quote streams, and we should make sure subscribe/unsubscribe with multi-symbol payloads work end-to-end.
Where to start
backend/app/routes/mock.py — the mock_ws_quotes handler.
- Add envvar (or query param) to override tick interval / jitter.
- Verify the Android
QuoteStream.kt correctly receives the pushes and updates the position rows.
Definition of done
- With
MOCK_MODE=yes, subscribing to a few symbols causes visible price flicker on the Positions screen.
- Tick interval can be tuned without code changes.
- Documented in
backend/README.md.
Why this is useful
Mock mode currently does implement
/ws/quotes(seebackend/app/routes/mock.py), but only with a fixed 1-second tick. We should let the cadence and jitter shape be tweakable so contributors can stress-test the chart's UI under fast quote streams, and we should make sure subscribe/unsubscribe with multi-symbol payloads work end-to-end.Where to start
backend/app/routes/mock.py— themock_ws_quoteshandler.QuoteStream.ktcorrectly receives the pushes and updates the position rows.Definition of done
MOCK_MODE=yes, subscribing to a few symbols causes visible price flicker on the Positions screen.backend/README.md.