Skip to content

Mock mode does not simulate WebSocket quote pushes #5

Description

@whtis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions