Skip to content

Latest commit

 

History

History
60 lines (54 loc) · 1.43 KB

README.md

File metadata and controls

60 lines (54 loc) · 1.43 KB

smol exchange

a smol exchange diagram

TODO

  • Redis
  • Docker
  • Orderbook
  • Matching Engine
  • Redis PubSub for Transactions
  • Tests
  • CI/CD
  • API
    • Websocket
    • REST API
  • Demo Frontend
  • Documentation

Getting Started

Prerequisites

Running the Matchine Engine

  1. Clone the repository
  2. cd apps/matching-engine
  3. Run docker compose up
  4. Run cargo test --verbose -- --nocapture

Directory Structure:

├── apps
│   └── matching-engine
│       ├── Cargo.lock
│       ├── Cargo.toml
│       └── src
│           ├── engine
│           │   ├── engine.rs
│           │   ├── mod.rs
│           │   └── orderbook.rs
│           ├── errors
│           │   ├── errors.rs
│           │   └── mod.rs
│           ├── lib.rs
│           └── main.rs
├── assets
│   └── diagram.png
├── devcontainer.json
├── docker-compose.yml
├── dockerfiles
│   └── Dockerfile_redis
├── exchange.code-workspace
└── redis
    ├── data
    ├── entrypoint.sh
    └── redis-stack.conf