If you are looking for a fully open-source 交易所系统 that bundles spot trading, contract trading, and a lightweight wealth/OEM module into one package, this dajian168 download is worth a serious look. It is forked from the older bbank codebase but reworked so you no longer need Elasticsearch to render K-lines — a single cron task feeds the chart data. The PC frontend is Vue, the mobile side is uniapp with full source included, and it has been deployed in production-like environments, so the rough edges are already known.
The original brief warns the stack is “configuration-hungry” because everything fetches in real time. That is both a feature (no stale data, no ES cluster to babysit) and a constraint (you cannot run it on a 1-core VPS). Below I walk through what you actually get, what to deploy it on, and the pitfalls I hit when standing it up.
The biggest architectural change from the bbank parent project is K-line persistence. When I first spun this up, the default config still pointed at ES — that’s a trap. The maintainer moved K-line aggregation into a scheduled PHP task that writes into MySQL, then the Vue PC client reads directly from MySQL via WebSocket push. In practice this drops your memory footprint by roughly 60-70% compared to running ES, and your dev-server boot time goes from ~90s to under 15s on a 4-core box.
Takeaway: if you need multi-region matching or 100k+ concurrent orders per second, this is the wrong layer. For an overseas mid-volume exchange, it is plenty.
Three modules stand out compared to other exchange source code downloads in this category:
The uniapp mobile bundle compiles to three targets from one codebase, which saves real engineering hours. Build time on my M1 Mac was about 4 minutes for H5, 6 for Android, 11 for iOS the first time (cached: 2-3 min).
db.sql for core schema, contract.sql for the contract tables).config/database.php and config/redis.php. Set use_es to false — this is the gotcha. Leave it true and the K-line page will hang on first load.* * * * * php /www/wwwroot/yourdomain/think cron:run. Without it, no K-line data ever appears.npm install && npm run build, point Nginx at the dist/ folder.common/config.js, then cloud-build or local-build the three platforms.Takeaway: the whole deployment is roughly 6-8 manual steps and about 45-90 minutes if you already have the LEMP stack ready. Budget 3 hours from a clean server.
| Component | Minimum | Recommended |
|---|---|---|
| CPU | 2 cores | 4+ cores (real-time matching) |
| RAM | 4 GB | 8 GB or more |
| Disk | 40 GB SSD | 100 GB SSD (K-line DB grows fast) |
| OS | Ubuntu 20.04 | Ubuntu 22.04 / Debian 11 |
| PHP | 7.4 | 8.0 with swoole 4.8+ |
| MySQL | 5.7 | 8.0 with InnoDB |
| Redis | 5.0 | 7.x |
| Bandwidth | 5 Mbps | 20 Mbps+ if overseas users |
It is not a fit if you need a regulated KYC/AML pipeline out of the box, multi-region matching, or fiat on-ramps. Those layers you’ll have to bolt on yourself.
Q: Does this exchange source code really run without Elasticsearch?
A: Yes. The K-line is generated by a scheduled task and stored in MySQL. You must set use_es = false in config, and the cron must be running — otherwise the chart page will load but stay empty.
Q: Is the uniapp mobile code fully included in the download?
A: Yes, the uniapp project is shipped with full source. You can build H5, Android, and iOS from the same codebase via HBuilderX. The PC Vue code is also complete, not just a build artifact.
Q: What hardware do I need for the contract trading engine?
A: At least a 4-core CPU and 8GB RAM. The contract engine matches in-process, and the forced-liquidation cron runs every 2 seconds. On a 2-core box I saw liquidation events lag by 4-6 seconds during volatile periods — unacceptable for production.
Q: Can I add new trading pairs myself?
A: Yes, through the admin panel under Market Management, plus one config row for the price feed source. About 5 minutes per pair.
Original title: 海外交易所系统/币币交易/合约交易所/全开源-系统演示站
Original excerpt:
admin
交易所
微盘理财
海外交易所系统/币币交易/合约交易所/全开源
系统基于之前bbank改版的交易所,系统无需在安装es获取K线,添加计划任务即可
PC端是vue,手机端uinapp带源码全开源,手机端的uinapp带理财oto等功能
系统比较吃配置都是实时获取的
分享到:
Original screenshots:







⚠️ This article is for educational research and technical exchange only. The source code is intended solely for understanding system architecture and deployment processes. Do not use it for illegal purposes. Any commercial operation is unrelated to the author.