Skip to content

feat: Stage 1 skeleton — types, context, engines, exchanges, and tests#1

Merged
tommed merged 1 commit intomainfrom
feat/stage-1-skeleton
Apr 6, 2026
Merged

feat: Stage 1 skeleton — types, context, engines, exchanges, and tests#1
tommed merged 1 commit intomainfrom
feat/stage-1-skeleton

Conversation

@tommed
Copy link
Copy Markdown
Contributor

@tommed tommed commented Apr 6, 2026

Summary

  • Adds pyproject.toml, poetry.lock, and Makefile for project tooling (make install, make ci, etc.)
  • Core domain types: Order, Fill, Position, MTU, PriceLevel in types.py
  • TradingContext protocol (context.py) and full exception hierarchy (exceptions.py)
  • SimulatedClock (engines/clock.py) and DA auction matching engine (engines/matching.py)
  • ExchangeAdapter protocol and base exchange definitions (exchanges/base.py)
  • Initial test suite covering types, context protocol, clock, and matching engine

Test plan

  • make install installs all dev dependencies cleanly
  • make lint passes (ruff check + format)
  • make typecheck passes (mypy --strict)
  • make test passes with >80% coverage
  • make ci green end-to-end

🤖 Generated with Claude Code

Lays down the foundational modules for the DA auction backtester:
- pyproject.toml / poetry.lock / Makefile for project tooling
- Core domain types (Order, Fill, Position, MTU, PriceLevel)
- TradingContext protocol and exception hierarchy
- SimulatedClock and DA matching engine
- ExchangeAdapter protocol and base exchanges
- Initial test suite (types, context, clock, matching)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 6, 2026

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

@tommed tommed merged commit 168dc6a into main Apr 6, 2026
2 checks passed
@tommed tommed deleted the feat/stage-1-skeleton branch April 6, 2026 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant