Oracle3
Open-source trading engine and MCP server for prediction markets. Fee-aware no-arbitrage trading across related contracts, live on Kalshi, Polymarket and Solana or on paper.
Build an NSE portfolio, simulate what could happen, and learn why to change it — before risking real money.
Translation pending
FinancePython · JavaScriptGitHub @JasmeetSingh09OnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
Loading the full README. The saved excerpt is shown below.
A full-stack NSE stock intelligence platform. Combines live market data, quantitative alpha scoring, news sentiment analysis, and portfolio tools in a single dark-mode dashboard.
Validation: the quantitative models are covered by ~168,000 property/edge-case
assertions (currently passing) — put-call parity, optimiser weight constraints,
Black-Litterman view responsiveness, HRP clustering behaviour, Monte Carlo
percentile ordering, and more. The suites are deterministic and offline:Read the full README ↗A full-stack NSE stock intelligence platform. Combines live market data, quantitative alpha scoring, news sentiment analysis, and portfolio tools in a single dark-mode dashboard.
Validation: the quantitative models are covered by ~168,000 property/edge-case assertions (currently passing) — put-call parity, optimiser weight constraints, Black-Litterman view responsiveness, HRP clustering behaviour, Monte Carlo percentile ordering, and more. The suites are deterministic and offline:
cd backend
python tests/test_core_properties.py # ~81,000 assertions
python tests/test_new_algorithms_stress.py # ~87,000 assertions
python tests/test_modules_integration.py # import-safety + integration
See VALIDATION.md for each model's formulation, how it was validated, its assumptions, and its known limitations — and RESEARCH_momentum.md for an honest backtest write-up (where correcting a look-ahead flaw erased half the measured edge).
| Section | What it does |
|---|---|
| Dashboard | Live Nifty 50 prices, MCX commodities, market news, top picks (alpha model), regime analysis, and prediction track record |
| Stocks | Screener table across the NSE universe with P/E / ROE / market cap / sector filters — click any row for full analysis |
| Stock Detail | Company intro, 52-week range, intraday chart, full valuation & balance sheet metrics, 4-factor alpha score with AI explanation, GARCH volatility forecast, news sentiment |
| My Stocks | Personal watchlist with live prices and P&L |
| Simulator | Paper-trade against real NSE prices (realtime) or replay historical data |
| Portfolio Lab | Mean-variance optimisation, Black-Litterman, HRP, efficient frontier |
| Research | Sentiment-alpha backtest, mean-reversion, momentum studies, pairs trading |
| Markets | MCX commodities, macro news, market regime (3-state Gaussian HMM) |
| Calculators | SIP, lumpsum, STCG/LTCG tax |
Ranks every large liquid NSE stock on four quantitative factors — momentum, quality, value, and sentiment — then explains each signal with a Fama-French reality check.
Backend — Python 3.11, FastAPI, yfinance, FinBERT (sentiment), GARCH (arch), XGBoost, scipy/statsmodels, APScheduler
Frontend — React 18, Vite, Tailwind CSS, Recharts, TanStack Query, React Router v6
git clone https://github.com/YOUR_USERNAME/quant-india.git
cd quant-india
cd backend
python -m venv venv
# Windows:
venv\Scripts\activate
# macOS/Linux:
source venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
# Edit .env and add your NEWS_API_KEY
GPU note:
requirements.txtinstalls the CPU build of PyTorch. If you have an NVIDIA GPU, replace thetorchline with:pip install torch --index-url https://download.pytorch.org/whl/cu124
uvicorn main:app --reload --port 8000
Backend is live at http://localhost:8000. First startup downloads FinBERT (~420 MB).
cd frontend
npm install
npm run dev
Frontend is live at http://localhost:5173. The Vite dev server proxies /api to localhost:8000 automatically.
| Variable | Required | Description |
|---|---|---|
NEWS_API_KEY | Yes | newsapi.org free key |
GMAIL_ADDRESS | No | Gmail address for price/signal alerts |
GMAIL_APP_PASSWORD | No | Gmail app password (not your main password) |
GMAIL_RECEIVER | No | Email address to receive alerts |
FRONTEND_URL | No | Set in production for CORS (your Vercel URL) |
Full step-by-step in DEPLOY.md.
Quick summary:
# After any change
git add -A
git commit -m "your message"
git push
# Render and Vercel redeploy automatically
quant-india/
├── backend/
│ ├── main.py # FastAPI app, all route definitions
│ ├── requirements.txt
│ ├── Dockerfile
│ ├── .env.example
│ └── modules/
│ ├── alpha_model.py # 4-factor alpha scoring + XGBoost
│ ├── metrics.py # Valuation, Piotroski, DuPont, health score
│ ├── sentiment.py # FinBERT news sentiment
│ ├── regime_detector.py # Gaussian HMM market regime
│ ├── garch_vol.py # GARCH volatility forecasting
│ ├── screener.py # NSE universe screener
│ ├── portfolio_optimizer.py # MVO, Black-Litterman, HRP
│ ├── simulator.py # Paper trading engine
│ ├── news.py / rss_news.py # NewsAPI + RSS feed aggregation
│ └── ...
└── frontend/
├── src/
│ ├── App.jsx # Routes
│ ├── api.js # All Axios calls
│ ├── pages/
│ │ ├── Dashboard.jsx
│ │ ├── StockExplorer.jsx # Stocks list + detail (combined)
│ │ ├── MyStocks.jsx
│ │ ├── Simulator.jsx
│ │ ├── PortfolioLab.jsx
│ │ ├── QuantResearch.jsx
│ │ ├── Markets.jsx
│ │ └── Calculators.jsx
│ └── components/
│ ├── Sidebar.jsx
│ ├── AlphaMeter.jsx
│ ├── StatCard.jsx
│ └── ...
└── vite.config.js
This project is for educational and research purposes only. Nothing here constitutes financial advice. Past model performance does not predict future returns.