Quant & AI
case studies.

001

NSE Trading Desk · Dual-Engine Quant Research

Systematic Trading Paper Trading Rust
Problem

Backtests inflate easily: survivorship bias, curve-fitting, and implementation bugs make naive strategies look like alpha.

System

A systematic equity strategy on NSE; the method stays private. Python research is matched to the decimal by an independently written Rust engine, and orders are blocked by default behind two approvals, nine gates and a kill switch.

Result

Out-of-sample Sharpe near 1.44 with a -6.6% maximum drawdown. Runs as a paper-trading desk with a live dashboard and 250+ tests across Python and Rust.

002

Kronos NSE · Real-Time Market Variance Engine

Foundation Models Real-Time Systems Market Data
Problem

Price forecasts from a single model ignore market state. Regime shifts (fear, panic, thin liquidity) silently invalidate signals.

System

Fine-tuned Kronos-small (24.7M params) on a 305K-window NSE dataset; 5-layer MVE pipeline aggregating VIX, options sentiment, FII/DII flow, GIFT Nifty, and global macro into a 5-state market classifier.

Result

Under 340ms candle-close-to-signal latency, 9-check data quality gate, and model promotion gated on out-of-sample directional accuracy beating the pretrained baseline.

003

Options Pricer & Paper Trading Terminal

Derivatives Pricing Engines Risk
Problem

Retail options tooling recomputes IV from scratch every tick and ignores portfolio-level margin offsets, so realistic strategy simulation breaks down.

System

Production-grade BSM engine with full Greeks; warm-start Newton-Raphson IV solver that typically converges in a single iteration; SPAN-like holistic margin engine with 29 multi-leg strategy templates and ACID MongoDB transactions.

Result

80-90% computation reduction on IV solving in the production terminal, 66% lower API quota use, O(1) token resolution over 93K+ derivatives, and 90%+ bandwidth cut via gzip.

004

The Health Factory · AI Operations Suite

Production Automation ERP Integration LLM Pipelines
Problem

Two FMCG companies ran sales reporting, production planning, procurement and reconciliation as slow, manual processes, over data sources that disagree.

System

Ten internal tools on one pattern — deterministic pipelines, LLM extraction behind compliance gates, automated distribution — spanning volume root-cause analysis, material planning, goods-receipt extraction, availability reporting, recipe reformulation, paid-media monitoring and HR announcements. Architecture under NDA.

Result

Days of manual work now run unattended. The root-cause dashboard alone: 600+ hand-written commits in six weeks, sources kept side by side rather than blended, and independent checkers that re-derive every verdict before it ships.

Further research & builds

noarb · Option chain arbitrage checks

GitHub

Reads an option chain and reports which quotes cannot all be true at once — below intrinsic, out of order in strike, spreads dearer than they can ever pay, broken butterfly convexity, broken put–call parity. Every check is model-free, so a violation is a statement about arithmetic rather than a model's opinion, and each finding names the cheapest explanation to check first: on a real chain it is a stale quote or a missing dividend, not free money. The implied volatility solver returns nothing rather than a number where a quote does not identify one. Zero dependencies, no network, exits non-zero. MIT.

Python · 2,662 tests · 98% coverage · MIT

threeway · Reconciliation CLI

GitHub

Reconciles a purchase order against goods received against the supplier invoice and names one reason each line disagrees, covering the three ways a figure changes meaning in transit: identity, unit of measure, and period cut-off. Zero runtime dependencies and Decimal throughout, because the people who need it run it on machines where installing a library is a conversation with IT. Exits non-zero on exceptions so a pipeline can gate on a clean reconciliation. MIT.

Python · 106 tests · MIT

Hisab · Export receivables ledger

GitHub

A small exporter's customs-cleared shipping bill becomes a receivable they can discount on day one. When the foreign payment lands weeks later, a matcher ties the messy SWIFT message to the shipment — the LLM only proposes, rules re-verify, thresholds and humans decide — then the ledger repays the financier and pays the exporter the balance. Money never moves on-chain; the contracts only record who is owed what. Hackathon build.

TypeScript · Solidity · 21 tests · 28 e2e checks

Jugaad · On-device machine health

GitHub

Turns a phone into a vibration, acoustic and magnetic sensor for rotating machinery, scores each reading against a per-machine reference, and trains one fault classifier across three or more phones over Wi-Fi Direct with no cloud. A team build for the iQOO hackathon; I wrote the federated learning, anomaly scoring and peer-to-peer sync, about 60% of the code.

Kotlin · Jetpack Compose · TFLite · federated averaging

Aegis · On-device scam and deepfake guard

GitHub

A reference engine for an Android layer that screens what is on screen, offline: watermark detection for AI-generated images and video frames with a local classifier fallback, and phishing scores for links in web pages, SMS and email. A cheap always-on triage pass decides what earns the heavier model; nothing leaves the device and the event log is encrypted. The Android and NPU binding is the next phase.

TypeScript · offline · 50 tests

ProductIQ · Physics-checked product data

Extracts specs from messy industrial product text, then asserts every number into the Z3 theorem prover as physics and domain constraints. When the values cannot coexist — a bearing bore wider than its outer diameter, power that is not volts times amps — it returns the smallest contradicting set as a plain-language reason, with outlier, duplicate and drift checks on top. The LLM extracts; the solver decides. UNIHACK build.

Python · Z3 · LLM tool-calling

Model Collapse · Real-data anchoring

GitHub

How much real data does a self-consuming loop of tabular generative models need before it stops collapsing? Gaussian copula, CTGAN and TVAE on three public datasets, measured against closed-form theory. One finding: rank-based copulas never collapse in variance — the damage moves into dependence, support and downstream utility instead. Paper pending conference presentation.

Python · CTGAN · TVAE · copulas

LLM Flash Crash

GitHub

Agent-based simulation (500 agents, 160 Monte Carlo runs) of systemic risk from homogeneous LLM traders: +30.3% drawdown amplification at full adoption. Proposed Computational Asymmetry Theory as a risk framework.

Python · Mesa ABM · Hawkes

India Quant System

Nightly ML signal pipeline for NIFTY/BANKNIFTY: 6-model ensemble (HMM, GJR-GARCH, LightGBM, LSTM, meta-model) over 80+ features, with VaR limits and a strict paper-trading gate.

Airflow · TimescaleDB · MLflow

Viveka · Equity-Research RAG

Forensic RAG engine answering investor questions over Indian listed-company filings, with citations to the exact filing, year, and page across a 250-filing corpus target.

FastAPI · Voyage · Claude

ARAS · Autonomous Research Agents

GitHub

Multi-agent pipeline orchestrating 6 AI agents from idea to finished paper; 88% retrieval accuracy over a 50K+ document corpus, 70% cut in research cycle time.

n8n · OpenAI · FAISS

DRL Quantum Sensing & Routing

GitHub

GNN-PPO routing for distributed quantum sensing networks: near-Heisenberg scaling (α=1.92±0.04) and +51% quantum Fisher information over the strongest baseline.

PyTorch · PPO · GNN

Quantum Cyclone Classification

GitHub

Hybrid quantum-classical cyclone intensity classifier using IQP-kernel QSVMs on IBTrACS storm data: 96.1% accuracy with noise-resilience and OOD analysis.

Qiskit · scikit-learn

SubPlate · Subscription Food Delivery

pnpm/TypeScript monorepo: Expo/React Native app, Fastify 5 + PostgreSQL API, shared Zod contracts typed end-to-end, and Cashfree e-mandate checkout.

React Native · Fastify · Zod

predictor-102 · Index Prediction

GitHub

Next.js financial index prediction app with real-time market data and Gemini-based forecasts; ML model over 500K+ data points with Monte Carlo simulation.

Next.js · TypeScript · Gemini