NineFifteenAM

Building in public

I'm building an options trading bot in public. Every mistake included.

Since early 2026 I have been writing the software that trades Indian index options for me. This is the log: how it is built, what broke, and what it cost — written down so you can skip a few of my mistakes.

6
months building
390+
commits
157
strategies tested
10,500+
trades logged

What you'll find here

  • The journey — Month by month, what I built and what happened.
  • Mistakes that cost me — The bugs, with the rupee figure attached.
  • Best practices — The rules and guards I actually run, and why.
The journey

GPT vs Claude in a live trading bot: letting two AIs vote

I asked GPT and Claude to read the same Nifty chart thousands of times and made them vote on my trades. What I learned about using AI in a trading bot.

27 Sept 20265 min read
The journey

Opening range breakout on Nifty: I tested 25 versions

My first trading bot traded one classic idea, the opening range breakout. I built 25 versions of it on Nifty options. Here's what made the good ones good.

27 Sept 20265 min read

Latest posts

All posts →
13 Nov 2026
Pre-market report for 13 November 2026: Huang quits Nvidia, CPI at 6.09%GIFT Nifty is 84.5 points below its 3:30 PM level. Jensen Huang resigned as Nvidia's CEO, Brent settled at $95.82 and India's October CPI rose to 6.09%.
Market reports
12 Nov 2026
Post-market report for 12 November 2026: Nifty up 0.18% as financiers offset autosNifty rose 44.30 points to 25,299.35 as Bajaj Finance and insurers gained and autos fell; Nifty Realty jumped 4.51%. October CPI came in at 6.09% after the close.
Market reports
12 Nov 2026
Pre-market report for 12 November 2026: Nvidia sinks after hoursGIFT Nifty is 78 points above its 3:30 PM level. Nvidia fell over 8% after hours on a report its board was preparing to remove its CEO. India's October CPI is due.
Market reports
11 Nov 2026
Post-market report for 11 November 2026: autos and banks lift Nifty 0.84%Nifty rose 210.40 points to 25,255.05 and Sensex 772.75 to 81,879.40; M&M jumped 5.30% and the PSU Bank index 2.94%. Tata Power reported after the close.
Market reports
11 Nov 2026
Pre-market report for 11 November 2026: US CPI tops forecast, Nvidia slidesGIFT Nifty is 292 points above Monday's 3:30 PM level after trading through the holiday. US CPI rose 0.4% in October; the 10-year yield closed at 4.99%.
Market reports
11 Nov 2026
How far does the Nifty move after 3:15 PM?In 30 Nifty sessions to 11 November 2026, the official close finished above the 3:15 PM value 21 times. All eight moves bigger than 50 points went up.
Research
09 Nov 2026
Post-market report for 9 November 2026: PSU banks lift Nifty 0.23%Nifty rose 58.25 points to 25,044.65 as the PSU Bank index jumped 3.73% and Bank Nifty 1.51%; Tata Steel fell 2.81% after its Q2 results. NSE is shut on 10 November.
Market reports
02 Nov 2026
Pre-market report for 2 November 2026: Nasdaq sinks, Reliance profit jumpsGIFT Nifty was 152.5 points above Friday's 3:30 PM level; the Nasdaq fell 2.86% as Intel slid. Reliance's Q2 profit rose 41%; FIIs bought ₹3,598.50 crore.
Market reports

Start here

All guides →
Guides

CPI at 6.09%: what breaching the RBI's 6% limit actually triggers

October 2026 CPI of 6.09% is above the RBI's 6% ceiling, but the law tests quarterly averages three quarters running. The rule, the arithmetic and the 2022 case.

12 Nov 20266 min read
Guides

Muhurat trading explained: what 11 Diwali sessions show

How the one-hour Diwali Muhurat session works, its 2026 timetable, and why the Nifty closed below its own opening price in 10 of the last 11 Muhurat sessions.

09 Nov 20267 min read
Guides

Standalone vs consolidated results: Trent's two Q2 profits

Trent's consolidated profit was ₹468 crore, below its standalone ₹490 crore, yet grew 25% against 8.6%. What each set of results counts, worked through.

30 Oct 20267 min read
Guides

WPI vs CPI: why wholesale inflation was 11.39% and retail 5.54%

India's wholesale inflation was 11.39% in September 2026 and retail inflation 5.54%. The baskets, the fuel gap and the services WPI leaves out, with the figures.

19 Oct 20266 min read
Guides

SEBI's closing auction rewrite: what changes on 7 December 2026

From 7 December, expiring F&O settles on a 30-minute VWAP and the closing auction moves to 3:30-3:40 PM. Old and new rules side by side, with the arithmetic.

16 Oct 20268 min read
Guides

Why a share can fall on good results: Nestle India's Q2

Nestle India's profit rose 36.3% and its shares fell 7.76% the same day. What the results, the preview estimates and the prior week's prices show, step by step.

15 Oct 20267 min read
Guides

LTCG, STCG and STT: how a share trade is taxed in India

A worked example of the three taxes on a share trade in India: STT on the trade itself, and LTCG at 12.5% or STCG at 20% on the gain, with the arithmetic.

13 Oct 20268 min read
Guides

Kite Connect historical data: fetching years of minute candles

Kite Connect returns 60 days of 1-minute candles per request. Going back to 2015 takes 72 requests. Here's the arithmetic and the Python loop.

09 Oct 20267 min read
Guides

What happens when a stock joins or leaves the Nifty 50?

The full Nifty 50 eligibility criteria, how NSE Indices picks changes, and what BSE's entry and Wipro's exit looked like in the volume data on the last day.

06 Oct 202610 min read
Guides

The closing auction session explained: how F&O stocks close now

How NSE's closing auction sets the closing price of F&O stocks, why the last trade is no longer the close, and what changes on 7 December 2026.

05 Oct 20268 min read
Guides

What FII and DII data is and how to read the daily numbers

FII and DII tables show what foreign and domestic institutions bought and sold in the cash market: what each column counts, where NSE publishes it, its limits.

03 Oct 20267 min read
Guides

Walk-forward testing explained, with a worked example

Walk-forward testing re-picks a setting on past data and scores it on the next unseen block. A simulated 6-window example shows the gap it exposes.

01 Oct 20268 min read
Guides

What is India VIX and what does it measure?

India VIX is NSE's annualised volatility figure, built from Nifty option prices over 30 days. Here is how it is computed and how to turn it into a daily move.

01 Oct 202611 min read
Guides

Streaming live prices with the Kite Connect websocket in Python

A runnable Python script for Zerodha's Kite Connect websocket: subscribe, pick a mode, read a tick field by field, handle reconnects and shut down cleanly.

30 Sept 20269 min read
Guides

Brokerage, STT and slippage: what one trade really costs

A worked example of what a single Nifty options trade costs on Zerodha, charge by charge, and how those costs turn a small edge into a steady loss.

29 Sept 20266 min read
Guides

How to backtest an intraday strategy without fooling yourself

The three ways a backtest lies: lookahead bias, ignored costs and overfitting. With pandas code, a coin-flip simulation, and a 68% backtest that won 20% live.

29 Sept 20267 min read
Guides

How to place your first order with the Kite Connect API in Python

Place, check and cancel your first order with Zerodha's Kite Connect API in Python, after rehearsing it in a paper mode that sends nothing to the exchange.

29 Sept 20266 min read
Guides

The pre-open session explained: how the 9:15 open price is set

How NSE's 9:00 to 9:15 pre-open auction sets each stock's opening price: the timetable since 7 September 2026, the tie-break rules and a worked order book.

29 Sept 202611 min read
Guides

Profit factor, payoff ratio and expectancy: a worked example

What win rate, payoff ratio, profit factor and expectancy mean, how they connect, and 20 made-up trades worked through in R, plus where small samples mislead.

29 Sept 20269 min read
Guides

What is GIFT Nifty, and how reliable is it as a guide to the open?

What GIFT Nifty is, who runs it, when it trades, how it relates to the Nifty, and the contract basics: size, dollar pricing, expiry and who can trade it.

29 Sept 20264 min read
Guides

Zerodha Kite Connect: what it costs and whether it's worth it

What Kite Connect costs in 2026, what the free and ₹500 plans include, the rate and data limits you'll hit, and who the paid plan is worth it for.

29 Sept 20266 min read
Guides

Zerodha Kite Connect: get your API key and refresh the token daily

A practical guide to getting a Kite Connect API key and handling the access token that expires at 6 AM each day, with scripted login and scheduling.

27 Sept 20269 min read
Guides

Algo trading in India: the rules, the cost, and what to do first

What the law requires of a retail algo trader in India, what a system costs to run after the April 2026 STT change, and the order to build it in.

26 Sept 20269 min read

What this site is

Building an algo trading bot for Nifty options in public: the strategies, the code, the lessons, and how SEBI rules and broker APIs work in India. No tips, no calls, no returns — read the about page for exactly what I do and don't publish.