This is a project inspired by nof1 Alpha Arena, you can setup AI trading bot on crypto market.
DONE:
- Paper Trading
- OpenAI compatible API
- LEVERAGE
- cctx quotes
TODO:
- real trading
- Node.js 18+ and pnpm
- Python 3.10+ and uv
# install JS deps and sync Python env
pnpm run install:allBy default, the workspace scripts launch:
- Backend on port 5611
- Frontend on port 5621
Start both dev servers:
pnpm run devOpen:
- Frontend: http://localhost:5621
- Backend WS: ws://localhost:5611/ws
Important: The frontend source is currently configured for port 5621. To use the workspace defaults (5611), update the following in frontend/app/main.tsx:
- WebSocket URL: ws://localhost:5611/ws
- API_BASE: http://127.0.0.1:5611
Alternatively, run the backend on 5621:
# from repo root
cd backend
uv sync
uv run uvicorn main:app --reload --port 5621 --host 0.0.0.0# build frontend; backend has no dedicated build step
pnpm run buildStatic assets for the frontend are produced by Vite. The backend is a standard FastAPI app that can be run with Uvicorn or any ASGI server.
MIT