Skip to content

Repository files navigation

Trading Platform

A complete web-based trading platform with real-time order book, user management, and market data feeds.

🏗️ Architecture

  • 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

🚀 Quick Start

Prerequisites

  • Docker & Docker Compose
  • Node.js 18+
  • CMake & C++ compiler (for C++ development)

Installation

  1. 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/
  2. Run setup:

    chmod +x setup.sh start.sh stop.sh
    ./setup.sh
  3. Start the platform:

    ./start.sh
  4. Access the application:

📋 Services

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

🔧 Development

Building Individual Components

C++ OrderBook:

cd core && mkdir build && cd build
cmake .. && make

Frontend Development:

cd frontend
npm install
npm start  # Development server on port 3000

Service Development:

cd services/api-gateway
npm install
npm run dev

📖 Documentation

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

📄 License

This project is licensed under the MIT License.

About

Trading Platform

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages