Bounty: $40 (LT)
Area: market/orderbook/orderbook.go
Current state: The order book supports adding and cancelling orders, but focused tests are needed around depth updates after cancellation, closed-book behavior, and snapshot immutability.
What is needed: Add Go tests for order cancellation and snapshot/depth behavior in the order book package.
Acceptance criteria:
- Cover cancelling a bid removes the matching bid level and deletes the order id.
- Cover cancelling an ask removes the matching ask level.
- Cover cancelling an unknown order returns
ErrOrderNotFound.
- Cover closed books rejecting add/cancel operations with
ErrBookClosed.
- Cover snapshots returning copies so callers cannot mutate internal bid/ask slices.
Required validation:
- Run
go test ./market/orderbook or the closest package-level Go test command available in this repo.
- Run
python3 build.py.
- Include the generated
diagnostic/build-*.logd artifact from diagnostic/; include the matching diagnostic/build-*.json if present.
- Use
.github/pull_request_template.md for the submission.
Bounty: $40 (LT)
Area:
market/orderbook/orderbook.goCurrent state: The order book supports adding and cancelling orders, but focused tests are needed around depth updates after cancellation, closed-book behavior, and snapshot immutability.
What is needed: Add Go tests for order cancellation and snapshot/depth behavior in the order book package.
Acceptance criteria:
ErrOrderNotFound.ErrBookClosed.Required validation:
go test ./market/orderbookor the closest package-level Go test command available in this repo.python3 build.py.diagnostic/build-*.logdartifact fromdiagnostic/; include the matchingdiagnostic/build-*.jsonif present..github/pull_request_template.mdfor the submission.