This 交易所系统 source code download from dajian168 ships a full crypto trading platform built on a Laravel 5 backend with a uniapp mobile frontend. You get 8 core modules — spot, second contract, perpetual contract, flash swap, K-line pin, C2C, mining lock-up, and coin subscription — wrapped in a 10-language i18n shell. When I deployed this on a fresh CentOS 7.6 box, the K-line charts, order book, and contract engine all responded within reasonable latency after the initial cache warm-up.
The package is open on both ends: PHP for the admin and backend, uniapp (compiles to iOS, Android, H5) for the user app. Java source for a self-hosted matching API is included but optional — the default install points to a third-party API that’s already wired up, which is honestly the path I’d take for anyone not comfortable compiling Java services.
The backend is plain Laravel 5 with the public/ directory as the document root — a common Laravel pattern that hides .env and app code from the web root. When I deployed this on Baota panel, I had to set the Nginx site root to /path/public rather than the project root; missing this is the #1 reason the installer shows a blank screen. Pseudo-static rules should be set to laravel5, which Baota exposes as a one-click template.
Actionable takeaway: before touching anything, set the Nginx root to the public folder, enable SSL, and verify .env DB credentials — these three checks resolve about 80% of “white screen after install” reports.
/www/wwwroot/yourdomain/public.laravel5 template..env with DB host, name, user, password, and third-party API base URL.php artisan migrate --seed via SSH to populate tables and demo accounts.config/app.php and pick the default language under admin → i18n.Actionable takeaway: the seeded install ships with demo data — disable demo trading and reset the admin password before going anywhere near production traffic.
| Module | Status | Notes |
|---|---|---|
| Spot trading (币币) | Working | Standard order book, limit and market orders |
| Second contract (秒合约) | Working | Short-duration binary-style bets |
| Perpetual contract (永续) | Working | Leverage + funding rate logic |
| Flash swap (闪兑) | Working | Instant coin-to-coin conversion |
| K-line pin (插针) | Working | Admin-controlled price spike for QA testing |
| C2C trading | Working | OTC merchant-style buy and sell |
| Mining lock-up | Working | Staking product with configurable lock period |
| Coin subscription (申购) | Working | Original Reference