Skip to content

Shr1ftyy/smol-exchange

Repository files navigation

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

About

A smol exchange

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published