
Deploy crypto exchange
A full-stack crypto exchange. CLOB + frontend + market-making bots.
Clickhouse
clickhouse/clickhouse-server:latest
Just deployed
/var/lib/clickhouse
bots
trevor-trinh/exchange
Just deployed
Postgres
railwayapp-templates/postgres-ssl:17
Just deployed
/var/lib/postgresql/data
frontend
trevor-trinh/exchange
Just deployed
backend
trevor-trinh/exchange
Just deployed
Deploy and Host Exchange on Railway
A production-ready cryptocurrency exchange with real-time order matching, WebSocket market data feeds, and automated market-making bots. Trade BTC/USDC perpetuals and prediction markets with instant execution and live price discovery.
https://github.com/trevor-trinh/exchange
About Hosting Exchange
Deploying this exchange sets up a complete trading infrastructure: a Rust-based matching engine with WebSocket support, Next.js trading interface with TradingView charts, PostgreSQL for order storage, ClickHouse for analytics, and automated market-making bots. The bots immediately connect to Hyperliquid to mirror real BTC prices and provide liquidity. No manual configuration needed—after deployment, visit the frontend URL and start trading instantly. The backend exposes a REST API with OpenAPI documentation, WebSocket feeds for real-time updates, and supports custom trading strategies through the API.
Common Use Cases
- Deploy a live crypto trading platform for testing trading strategies
- Run automated market-making bots for liquidity provision
- Build and test trading algorithms against a real matching engine
- Launch prediction markets with automated market maker (LMSR)
- Provide a trading sandbox for developers learning exchange infrastructure
Dependencies for Exchange Hosting
- PostgreSQL (for order book and trade storage)
- ClickHouse (for analytics and time-series market data)
Deployment Dependencies
- Hyperliquid WebSocket API - External price feed for BTC market data
- TradingView Charting Library - Frontend charting (included in repository)
Why Deploy exchange on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying exchange on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
Clickhouse
clickhouse/clickhouse-server:latestfrontend
trevor-trinh/exchangebackend
trevor-trinh/exchange