Warren is a redo of a second-year project: a personal paper-trading advisor for Indian markets (NSE). It tracks cash and holdings locally, pulls prices with yfinance, scores risk and upside, and suggests buys or sells. You execute on Zerodha yourself.
Not financial advice. Research and sandbox only. Source: github.com/sarweshsoman/Warren.
What it does
- Local JSON paper portfolio (cash + holdings)
- Zerodha-style delivery charges in breakeven and net P/L
- Rule-based scores: RSI, moving averages, momentum, ATR, volume
- Buy filter under ₹1000/share and a configurable invested cap (default ₹50k)
- Sell rules: stop-loss and profit-take when upside fades
- Backtest with
advise --date YYYY-MM-DD
Prices are delayed (~15 min). Fine for a sandbox, not live HFT.
How to run
git clone https://github.com/sarweshsoman/Warren.git
cd Warren
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python main.py init
python main.py add IDEA 10 12.50
python main.py status
python main.py advise