Appearance
Server requirements
What to prepare before you install: a server, a domain with two DNS records, and outbound internet access to the price and blockchain services the platform uses.
Server size
The platform runs many processes at once: the web app, up to 60 Horizon workers, the order processor, the price tracker, a liquidity bot per market, Soketi, the chart service and one bridge per network. These are starting points, not limits:
| Stage | CPU | RAM | Disk | Suits |
|---|---|---|---|---|
| Test / staging | 4 vCPU | 8 GB | 80 GB SSD | Trying the platform, a few markets |
| Launch | 8 vCPU | 16 GB | 160 GB NVMe | Up to ~20 markets with liquidity bots, a few thousand users |
| Growth | 16 vCPU | 32 GB | 320 GB NVMe | Many markets, futures and options, heavy traffic |
When you grow beyond one server, move PostgreSQL to its own server first, then Redis.
What uses the most
Liquidity for all markets runs in two PHP processes (about 50–100 MB each, with one Binance connection for every provider-backed market), plus up to 128 MB per Horizon worker at peak. The old one-process-per-market layout (PM_LIQUIDITY_MODE=per-market) needs about 100 MB of RAM per market instead.
Software
| Component | Version | Notes |
|---|---|---|
| Operating system | Ubuntu 22.04 or 24.04 LTS | The commands in this documentation are for Ubuntu |
| PHP | 8.2 or newer (8.3 recommended) | With PHP-FPM for Nginx. Required by composer.json and Laravel 12. |
| Composer | 2.x | Installs the PHP packages |
| PostgreSQL | 12 or newer (16 recommended) | The database (DB_CONNECTION=pgsql) |
| Redis | 5 or newer (7 recommended) | Queues, cache and sessions |
| Nginx | Any current version | Web server and proxy for WebSockets and charts |
| Node.js | 20 LTS | Builds the front-end, runs Soketi, the chart service and the bridges |
| PM2 | Latest | Runs and restarts all background processes |
| Soketi | Latest (@soketi/soketi) | WebSocket server for live updates |
| Rust | Stable | Only if you use the optional matching engine |
| Bitcoin Core | Current | Only if you offer BTC deposits and withdrawals |
PHP extensions
The platform and its packages need these extensions:
| Extension | Why |
|---|---|
pgsql | Connects to PostgreSQL |
bcmath, gmp | Exact arithmetic for balances and blockchain amounts |
mbstring, intl | Text handling and formatting |
curl, openssl | Calls to exchanges, blockchains and payment providers |
xml, dom | Required by Laravel and several packages |
zip | Composer package installs |
gd | Image handling for uploaded logos and icons |
sodium | Cryptographic signing |
pcntl, posix | Horizon manages its workers with them |
redis (recommended) | The fast phpredis client. Without it, set REDIS_CLIENT=predis. |
The installation guide installs all of them with one command.
Domain and DNS
You need two DNS records pointing to the server's public IP:
| Record | Example | Used for |
|---|---|---|
| A (and AAAA for IPv6) | yourdomain.com | The exchange and admin panel |
| A (and AAAA for IPv6) | socket.yourdomain.com | Live updates (WebSockets) |
Add a third record if you host this documentation on a subdomain, for example docs.yourdomain.com.
Both names get free HTTPS certificates from Let's Encrypt during installation.
Email
You need an email provider for verification codes, password resets, withdrawal confirmations and admin alerts: any SMTP service, or the Mailgun API. Set it up in Admin → Settings → Email.
Outbound internet access
The server must be able to reach these services. Some hosting regions block exchange APIs. Check with curl -I <address> before you choose a provider.
| Service | Addresses | Needed for |
|---|---|---|
| Binance | api.binance.com, stream.binance.com:9443 | Liquidity bots, prices, provider charts, mini-charts |
| MEXC | api.mexc.com, wbs.mexc.com | MEXC price feeds and chart data (if used) |
| Bybit | api.bybit.com | Bybit chart data (if used) |
| Etherscan API | api.etherscan.io | Deposit detection on Ethereum, BNB Smart Chain, Polygon |
| Tronscan | apilist.tronscan.org | Deposit detection on Tron |
| Your node providers | Ethereum, BNB, Polygon, Solana, TON, XRP endpoints | Addresses, withdrawals, balances (see Bridges) |
| Currency API | api.currencyapi.com | Daily fiat exchange rates (CURRENCYAPI_KEY) |
| Optional providers | Sumsub, Unlimit (GateFi), Stripe, Fireblocks, Payeer, Perfect Money | Only the ones you switch on |
| GitHub, npm, Packagist | Installing and updating |
Firewall
Only SSH, HTTP (80) and HTTPS (443) should be open to the internet. Every other port (database, Redis, Soketi, chart service, bridges, matching engine) is used only inside the server. See Ports & processes.
