Deploy 0dtetrader-template
Self-hosted 0dteTrader backend: API + Postgres + Redis, zero config.
Redis
Just deployed
/data
Just deployed
/var/lib/postgresql/data
Just deployed
Deploy and Host 0dteTrader Backend on Railway
0dteTrader is an open-source rapid options trading app (iOS + desktop) built on the official Webull OpenAPI, with options analytics from Tradier. This template deploys its complete backend — API, Postgres, and Redis — into your own Railway account.
About Hosting 0dteTrader Backend
There is nothing to configure. The NestJS API builds from the repo's Dockerfile with a /v1/health health check; database migrations run automatically on every deploy. Database and Redis passwords are generated by Railway at deploy time. JWT signing secrets and the credential-vault encryption key are generated by the API on first boot and stored in your Postgres, so logins survive restarts and redeploys — set JWT_ACCESS_SECRET, JWT_REFRESH_SECRET, or CRED_ENCRYPTION_KEY on the api service if you prefer to manage them yourself (an environment variable always wins). Broker credentials (Webull keys, Tradier token) are entered inside the app after login and stored encrypted in your database.
Why Deploy 0dteTrader Backend?
Running your own backend means your trading accounts, broker credentials, and order history live in infrastructure you control — not on someone else's server. One click gives you a private, isolated instance with its own database and its own unique secrets.
To connect the apps: once the three services are green, copy the api service's public URL (Settings → Networking), confirm /v1/health returns {"status":"ok","db":"ok",...}, then open Server on the app's login screen, paste the URL, hit Test connection, and Save. Full walkthrough: docs/self-hosting.md.
Common Use Cases
- Private backend for your own 0DTE options trading with the 0dteTrader iOS/desktop apps
- A shared backend for a small trading group, with each member's broker credentials encrypted per user
- A staging/sandbox environment for contributing to the open-source project
Dependencies for 0dteTrader Backend Hosting
- The 0dteTrader iOS or desktop app to connect to your instance
- A Webull OpenAPI key (paper or live) and optionally a Tradier API token, entered in-app after login
Deployment Dependencies
- 0dteTrader repository — source the api service builds from
- Webull OpenAPI — order execution and chart data
- Tradier API — options chains and Greeks (optional)
Risk disclosure: trading involves substantial risk of loss. This software places real orders when connected to a live brokerage account — always validate against a paper (practice) account first. 0dteTrader is an order-entry and market-data tool, not financial or investment advice.
Template Content
