Skip to content

Mosleh92/exchange-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

489 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🏦 Exchange Platform v3

Multi-Tenant Currency Exchange & P2P Trading Platform

Real-time WebSocket trading β€’ Role-based access β€’ KYC + escrow β€’ Built for scale

Node.js React PostgreSQL Supabase License

Features β€’ Architecture β€’ Tech Stack β€’ Licensing


πŸ’‘ Overview

Exchange Platform v3 is a multi-tenant exchange infrastructure that lets organizations run their own branded currency-exchange and P2P trading desk. Each tenant gets isolated data, custom branding, configurable fees, and a full role hierarchy out of the box.

Designed for currency exchange offices, crypto OTC desks, and B2B remittance operators that need white-label infrastructure without building from scratch.


✨ Features

🏒 Multi-Tenant Architecture

  • Logical isolation per tenant (schema- or row-level)
  • Per-tenant branding, fees, currencies, KYC requirements
  • Tenant admin self-service portal

πŸ‘₯ Role-Based Access Control

  • Super Admin β€” platform owner, manages tenants
  • Tenant Admin β€” manages a single exchange organization
  • Manager β€” operational supervisor
  • Staff β€” counter operator
  • Customer β€” end-user trading & wallet

⚑ Real-Time Trading Engine

  • WebSocket-driven live order book & rate updates
  • P2P marketplace for direct peer-to-peer trades
  • Escrow service holding funds during dispute windows
  • Optional auto-matching engine

πŸ” Compliance & Security

  • KYC document upload + verification workflow
  • Audit log for every financial action
  • Transaction limits per tier
  • Two-factor authentication

πŸ›οΈ Architecture

graph TB
    subgraph "Client Layer"
        WEB[React Web App]
        ADM[Admin Dashboard]
        MOB[Mobile Web]
    end

    subgraph "API Layer"
        API[Node.js REST API]
        WS[WebSocket Server]
        AUTH[Auth + RBAC]
    end

    subgraph "Business Logic"
        TENANT[Tenant Resolver]
        TRADE[Trading Engine]
        ESC[Escrow Service]
        KYC[KYC Pipeline]
    end

    subgraph "Data"
        PG[(PostgreSQL<br/>tenant-isolated)]
        SUP[Supabase<br/>Auth + Storage]
    end

    WEB & ADM & MOB --> API
    WEB & ADM & MOB <--> WS
    API --> AUTH --> TENANT
    TENANT --> TRADE & ESC & KYC
    TRADE & ESC & KYC --> PG
    AUTH --> SUP
    KYC --> SUP
Loading

πŸ› οΈ Tech Stack

Layer Technology
Frontend React, TypeScript, Tailwind CSS
Backend Node.js, Express, WebSocket
Database PostgreSQL, Supabase
Auth Supabase Auth + JWT
Realtime WebSocket, Supabase Realtime
Storage Supabase Storage (KYC docs)

πŸ“Έ Screenshots

πŸ–ΌοΈ Coming soon β€” trading desk, admin panel, KYC review screen.


πŸ”’ Security & Compliance

  • End-to-end encryption for sensitive data
  • Per-tenant data isolation
  • Comprehensive audit trail
  • Configurable transaction limits per user tier
  • KYC workflow with document verification

πŸ“„ Licensing & Contact

This is proprietary commercial software. See LICENSE.

Looking for:

  • 🏒 White-label deployment for your exchange business
  • πŸ› οΈ Custom feature development
  • 🀝 Technology partnership

πŸ“§ moslehmohammad2@gmail.com πŸ™ github.com/Mosleh92


⭐ Star this repo if you find it useful!

About

🏦 Multi-tenant currency exchange & P2P trading platform β€” Node.js + React + PostgreSQL + Supabase. Real-time WebSocket trading, role-based access, KYC, escrow.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors