Work · Autonomous system

Alphie

An intraday trading bot for NSE stocks, with a Claude sleeve inside hard risk rails.

Status
Live
Years
2026 to present
Links
trades.nikhilpatil.in

What it is

Alphie runs a backtested gap-fade strategy on Indian equities from a small GCP VM, with a Flutter dashboard for web and Android. Every live trade is shadowed by more than a dozen counterfactual strategies so promotion to live is a decision backed by evidence, not a hunch. The newest sleeve lets Claude Code place discretionary bracket orders every ten minutes, but only through one endpoint that enforces notional caps, daily trade limits and kill switches in deterministic code.

What was hard, or unusual

  • The bot commits its own daily data snapshots and post-session critiques to the repo, written by scheduled Claude Code routines.
  • The rule that no LLM sits in the execution path was overridden once, deliberately, with a written decision and a review gate.
  • The deploy script refuses to deploy during market hours if a position is open.

Stack

PythonFastAPIAPSchedulerZerodha KiteFlutterFirestoreGeminiClaude CodeGCP