Ai Trading Bot banner
Gaurang1745 Gaurang1745

Ai Trading Bot

Data community

Description

Autonomous AI trading experiment on Indian equities (NSE/BSE), driven by Claude Opus 4.7 + a multi-agent pipeline. 14-session live run, full archive on Vercel.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

AI Trading Bot

An autonomous equity-trading experiment on Indian markets (NSE/BSE), with **Claude Opus 4.7** making every trading decision and a Next.js dashboard exposing every trade, prompt, and decision the bot made.

**Live archive dashboard:** **https://ai-trading-bot-archive.vercel.app**

The experiment ran 2026-04-22 → 2026-05-11 (14 trading sessions) and is now concluded. The dashboard is frozen on the final state and serves the full archive — `/` is a project showcase, `/dashboard` has every trade and snapshot, `/logs` lets you browse every Sonnet, Opus, and Haiku call (system prompt, user prompt, response, metadata).


The Experiment

The question we're trying to answer: **how well does Claude Opus 4.7 perform as an autonomous discretionary trader if we give it good market data, deep stock research, and a structured decision loop — and stay out of its way?**

**Setup**

Capital ₹10,00,000 (paper)
Universe NSE/BSE — large + mid caps + select ETFs (~510 instruments)
Started 2026-04-22
Mode Paper trading via realistic OHLC fill simulation against live Dhan market data
Decision cadence Every 30 min during market hours (12 cycles/day)
Models Sonnet 4.6 (market pulse) → Opus 4.7 (deep research + trading decisions) → Haiku 4.5 (news summarization)
Risk gates 15+ deterministic guardrails between Claude's decision and order placement

The bot is mode-blind: Claude never knows it's paper trading. The data format, prompts, and execution interfaces would be identical in a live-trading run.


Architecture

                         ┌──────────────────────────┐
                         │   Dhan HQ (broker API)   │
                         │  market data + LTPs      │
                         └────────────┬─────────────┘
                                      │
   ┌──────────────────────────────────▼──────────────────────────────┐
   │  ai-trading-bot/  (