A high-performance centralized cryptocurrency exchange implementation in Rust, featuring spot and margin trading capabilities with real-time market data distribution.

The project consists of three main components:
-
HTTP Server (
http-server/
):- RESTful API endpoints for order management
- Built with Axum framework
- Redis-based communication with the order book manager
-
Orderbook Manager (
orderbook-manager/
):- Core trading engine implementation
- Real-time order matching
- Position and PnL management
- Price service for mark and index prices
- Market depth maintenance
-
WebSocket Server (
websocket-server/
):- Real-time market data streaming
- Room-based subscription system
- Redis pub/sub integration
- Client connection management
-
Wallet Manager (
wallet-manager/
):- Wallet management
- Balance tracking
- Transaction history
- Onramp and offramp support
docker compose up --build -d
Built with 🦀 and ❤️