PaperDuel is a web-based simulation where traders can compete head-to-head using real market data. It combines a realistic backtesting engine built in Python (FastAPI + pandas) with a responsive frontend using Lightweight Charts, letting users trade in real time and see their performance side-by-side.
Live Demo: https://performed-describing-send-derby.trycloudflare.com (demo is down now)
- Click Start Duel to begin the game! Devpost: https://devpost.com/software/paperduel
- Real-time replay of historical market data
- Two-user battle system with unique battle_ids
- BUY/SELL/CLOSE trading system with SL/TP and slippage
- Live equity, PnL, and position tracking
- Terminal-style interface with live logs
- Clone the repository
git clone https://github.com/ZocoMacc/PaperDuel.git
cd PaperDuel- Create and activate a virtual environment
python3 -m venv venv
source venv/bin/activate # macOS/Linux
venv\Scripts\activate # Windows
- Install dependencies
pip install -r requirements.txt
- Run the backend server
uvicorn api.main:app --reload
- You should see something like:
Uvicorn running on http://127.0.0.1:8000
- Go to http://127.0.0.1:8000 and start playing! :)