A TypeScript monorepo with a Fastify API, a React dashboard, and PostgreSQL through Drizzle. It trades stocks and crypto on Alpaca’s paper trading API, so every rule gets proven before real money is involved.
How it stays safe
- Risk controls. An automatic kill switch, daily-loss and max-drawdown limits, trailing stops, and bracket orders.
- Crash-safe orders. Every order carries a unique ID, so a retry can never double buy, and unconfirmed orders are reconciled with Alpaca on restart.
- Live view. Prices stream in over WebSocket, and the dashboard updates over Server-Sent Events behind JWT auth with refresh-token rotation.