Skip to content

[$45 BOUNTY] [Go] Add WebSocket order book delta validation tests #4

Description

@Peter7896

Bounty: $45 (LT)

Area: market/ws, market/orderbook, market/matching

Current state: Order book snapshot recovery is covered, but there is no focused deterministic coverage for malformed, stale, or out-of-order WebSocket order book deltas and the state-preservation behavior around those failures.

What's needed: Add tests or helpers that validate WebSocket order book delta handling without requiring live services.

Acceptance criteria:

  • Reject malformed bid/ask price, quantity, side, or symbol payloads with a clear error.
  • Reject stale or out-of-order sequence updates without mutating the existing order book state.
  • Preserve the current book after an invalid delta or checksum-style mismatch is encountered.
  • Cover a valid snapshot followed by valid deltas so the recovery path and live update path are tested together.
  • Keep the coverage deterministic on Windows and Unix-like hosts.

Required validation:

  • Run go test ./market/orderbook ./market/matching ./market/ws where the Go toolchain is available
  • Run python3 build.py
  • Include the generated diagnostic .logd artifact from diagnostic/build-XXX.logd; also include diagnostic/build-XXX.json if present
  • Use .github/pull_request_template.md for your submission

Tracker note: This issue is opened for the upstream LT bounty tracker; bounty eligibility and payout are determined by upstream review, merge, and tracker rules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions