A complete web-based trading platform with real-time order book, user management, and market data feeds.
- Core Engine: High-performance C++ OrderBook for trade matching
- Microservices: Node.js services for web APIs and business logic
- Frontend: React-based web application with real-time updates
- Infrastructure: Redis for caching, PostgreSQL for persistence
- Docker & Docker Compose
- Node.js 18+
- CMake & C++ compiler (for C++ development)
-
Copy your existing C++ OrderBook code to
core/directory:cp /path/to/your/existing/*.hpp core/include/ cp /path/to/your/existing/*.cpp core/src/
-
Run setup:
chmod +x setup.sh start.sh stop.sh ./setup.sh
-
Start the platform:
./start.sh
-
Access the application:
- Web Application: http://localhost:8080
- Demo Login: trader@example.com / demo123
| Service | Port | Description |
|---|---|---|
| API Gateway | 8080 | Main web server & authentication |
| OrderBook Service | 8082 | C++ order matching engine wrapper |
| User Service | 8084 | User management & portfolio |
| Market Data Service | 8083 | Real-time market data feeds |
| Redis | 6379 | Caching & sessions |
| PostgreSQL | 5432 | Persistent data storage |
C++ OrderBook:
cd core && mkdir build && cd build
cmake .. && makeFrontend Development:
cd frontend
npm install
npm start # Development server on port 3000Service Development:
cd services/api-gateway
npm install
npm run dev- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the MIT License.