An interactive FnO learning platform with paper trading, pre-market analysis, and AI-powered trade reports.
- Pre-market Analysis — Scores global markets (GIFT NIFTY, NASDAQ, VIX, DXY, etc.) with weighted signals to generate a NIFTY bias score and trading playbook
- Paper Trading — Enter trades with stop loss, target, and thesis. Track P&L with virtual ₹5,00,000 balance
- AI Trade Reports — After closing a trade, an LLM generates a contextual report explaining what went right/wrong
- Gamification — XP for process (writing thesis, setting SL) not profit. Streaks, levels, badges
| Layer | Tool |
|---|---|
| Backend | FastAPI (Python) |
| Frontend | React + Vite |
| Database | SQLite |
| Market Data | yfinance + NSE API |
| LLM | Groq (free tier, LLaMA 3) + Ollama |
| Scheduling | APScheduler |
Ensure you have Python 3.10+ and Node.js 18+ installed.
You can easily start both the backend and frontend concurrently using the provided scripts:
Windows:
start.batLinux/macOS:
./start.shIf you prefer to start them manually:
Backend:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
cd backend
pip install -r requirements.txt
uvicorn main:app --reloadRuns at http://localhost:8000
Frontend:
cd frontend
npm install
npm run devIf you have Docker installed, you can spin up the entire stack seamlessly:
docker-compose up --buildFrontend runs at http://localhost:5173 Backend runs at http://localhost:8000
Important: Tradeflow does not hardcode URLs for market data scraping.
- Once the application is running, open the Settings page in the UI.
- Refer to the DATA_SOURCES.md file to find the required URLs.
- Paste the URLs into the Data Sources section and save.
LLM integrations (like Groq and Ollama) are also configured directly within the Settings page.
- Start backend, then frontend.
- Go to Settings and configure your data sources (see above).
- Go to Analysis tab → click Run Analysis to fetch global market data and generate the playbook.
- Go to Trade tab → fetch option chain, click a strike, fill in your thesis, open a paper trade.
- Close the trade when done → go to Reports → generate an AI report.
- Check Portfolio for stats, XP, and trade history.
Compiled desktop builds and versioned releases are published via GitHub Releases. To create a release, maintainers can use standard GitHub tag workflows. Check out the release page for standalone desktop installers (if available).
If you want to compile the desktop application locally, use the provided build scripts:
Windows:
build.batLinux/macOS:
chmod +x build.sh
./build.shThis will build the frontend, package the python backend via PyInstaller, and bundle them into an Electron app located in desktop/dist/.
This project is open-source under the MIT License.