Python

Python for traders: tutorials on data analysis, backtesting, broker APIs, OpenAlgo and building trading tools step by step.

Rolling CAGR heatmap grid rising from a laptop with code brackets

NIFTY 50 Rolling CAGR Heatmap: Python Code

Python code for a NIFTY 50 rolling CAGR heatmap that shows which stocks beat fixed deposit returns over 1, 3 and...
Rajandran R
9 min read
Grid of coloured heatmap tiles rising from a laptop with code brackets

Nifty 50 – Heatmap – Python Tutorial

Build a live Nifty 50 heatmap in Python: fetch quotes for all 50 stocks with OpenAlgo, sort gainers to losers and...
Rajandran R
3 min read
Winding roadmap with milestones leading to rising candlestick charts

Python Roadmap 2026 – A Strategic Guide for Traders and Investors

A Python roadmap for traders in 2026: core libraries, statistics, backtesting, OpenAlgo execution, SEBI static IP rules and a 12-month learning...
Rajandran R
6 min read
Bedroom smart light glowing green and red, linked to a laptop P&L chart

Zerodha Trader’s Bedroom Lights React to Profits and Losses – Here’s How You Can Build Yours using OpenAlgo

A viral tweet has the trading community buzzing: A trader connected his Zerodha portfolio to his bedroom lights, turning them green...
Rajandran R
5 min read
Price line split into three coloured market regimes with clustered dots

Identifying Market Regimes with the Wasserstein K-Means Algorithm – Python Tutorial

Detect market regimes with Wasserstein k-means in Python: how the algorithm compares return distributions, a NIFTY example with OpenAlgo and tuning...
Rajandran R
14 min read
Rocket package box speeding past a slow box, representing a fast package manager

UV: The Python Package Manager That’s 100x Faster Than Pip

UV is a blazingly fast Python package manager and project manager written in Rust. Created by Astral (the team behind Ruff),...
Rajandran R
4 min read
News cards feeding a neural network that projects into clustered latent space dots

FinBERT and Latent Space: What Every Trader Needs to Know About AI Market Analysis

FinBERT and latent space explained for traders: how AI scores Sensex and Infosys headlines, what 3D clusters reveal, test results and...
Rajandran R
17 min read
Neural chip with tuning dials outputting sentiment faces into a chart

Fine-Tuning Gemma 3 270M for Financial Sentiment Analysis using UnSloth

Five days ago, I published an article explaining LoRA and QLoRA as game-changers for traders wanting to fine-tune AI models. The...
Rajandran R
7 min read
Live price stream flowing into a ringing alert bell

How to Build yFinance Alert Manager using yFinance Websockets – Python Tutorial

Build a yfinance WebSocket alert manager in Python: stream live US stock prices from Yahoo Finance, use a context manager and...
Rajandran R
5 min read
Data table of index symbols flowing out of a laptop with a download arrow

How to Fetch Nifty 50 Symbols Using Python and Pandas

How to fetch Nifty 50 symbols in Python with Pandas: download the NSE constituent list, clean it and use the tickers...
Rajandran R
4 min read
Building blocks assembled into a rising equity curve by a code crane

Crash Course : Building Trading Strategies in Python

A 4-part webinar series on how to build trading strategies in Python with OpenAlgo, covering setup, the Python SDK, intraday and...
Rajandran R
4 min read
Real-time crypto dashboard fed by a fast database with streaming data

Building a Real-time Crypto Analytics Dashboard with QuestDB on Windows: A Step-by-Step Guide

Crypto trading never sleeps, and the markets move faster than most databases can keep up. If you’re serious about running a...
Rajandran R
5 min read