- Initialize project (npm init, tsconfig)
- Install dependencies (@polymarket/clob-client, ethers, dotenv, typescript, ts-node)
- Create
.envand.env.exampletemplates - Create
tools/find_target.tsto fetch user address from username - Verify
find_target.tsworks
- Create
src/main.ts(orbot.ts) - Implement
DRY_RUNmode flag - Implement
.envconfig loading & validation - Implement Wallet & Allowance checks
- Implement WebSocket connection & filtering for Target Address
- Implement
calculateSize(targetSizeUSD)logic - Implement
DAILY_LOSS_LIMITlogic - Implement Persistence (load/save
today_pnl)
- Implement
processSignalto handle Buy/Sell signals - Implement
clobClient.createOrder(commented out for now) - Implement "Simulation" logging for Dry Run
- Run dry run simulation
- Verify logging and math
- Scaffold React + Vite application in
frontend/ - Install TailwindCSS & Configure "Nightwatch" Theme (Dark/Neon)
- Add Express & Socket.io to
src/main.tsto serve API/Real-time data - Create Frontend Components:
- Stat Cards: Daily PnL, Target Name, Bot Status (Active/Dry Run)
- Live Feed: Scrolling terminal-like log of actions
- Positions: Table of copied trades
- Connect Frontend to Bot via WebSocket
- Polish UI with animations and responsive design