Skip to content

ZocoMacc/PaperDuel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PaperDuel

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.


Demo

Live Demo: https://performed-describing-send-derby.trycloudflare.com (demo is down now)


Features

  • 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

How to run the app locally

  1. Clone the repository
git clone https://github.com/ZocoMacc/PaperDuel.git
cd PaperDuel
  1. Create and activate a virtual environment
python3 -m venv venv
source venv/bin/activate  # macOS/Linux
venv\Scripts\activate     # Windows
  1. Install dependencies
pip install -r requirements.txt
  1. Run the backend server
uvicorn api.main:app --reload
  • You should see something like:
    Uvicorn running on http://127.0.0.1:8000
    
  1. Go to http://127.0.0.1:8000 and start playing! :)

About

PaperDuel is a gamified backtesting platform where users compete by running trading strategies on the same ES/NQ Futures dataset. Built for a 24-hour hackathon, PaperDuel combines Lightweight Charts with a Python backtest engine that processes historical ES data to calculate PnL, drawdowns, and equity curves.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors