Python for Traders

Robot emerging from a laptop analysing a candlestick chart, offline plug icon

Build Your Own Trading Agent Locally Using Ollama and Google Gemma3: Part 1

Set up Ollama Gemma3 on Windows: pull gemma3:4b or 12b, call it from Python with JSON output and Open WebUI, and...
Rajandran R Rajandran R
5 min read
Road fork with the highlighted path leading to flowing code blocks

Why We Built OpenAlgo in Python: Not Go, Rust, or as an EXE

Why did we build OpenAlgo in Python instead of Go, Rust, or as a desktop EXE? This blog breaks down the...
Rajandran R Rajandran R
2 min read

Things a Python Automated Trader Needs to Know About Broker APIs (in India)

Broker APIs in India explained for Python traders: login tokens, orders, market data, WebSockets, SEBI static IP rules from April 2026...
Rajandran R Rajandran R
7 min read

Mastering yfinance: The Ultimate Guide to Analyzing Stocks Market Data in Python

A yfinance Python guide for 2026: fetch price history, intraday data, financials, news and option chains from Yahoo Finance for US...
Rajandran R Rajandran R
15 min read

Building a Multi-Agent Financial News System with Agno and Agent UI

Want to build a powerful AI-powered financial assistant that fetches the latest news, analyzes sentiment, and provides stock information, all through...
Rajandran R Rajandran R
7 min read
TradingView alerts sent through Dev Tunnels to OpenAlgo

Understanding *args, **kwargs in Python for Traders

In algorithmic trading, writing efficient and flexible Python functions is crucial. As traders, we often need to handle multiple data points,...
Rajandran R Rajandran R
1 min read
connection pooling cover illustration

Slashing API Order Latency upto 70%+ with HTTP Connection Pooling

How HTTP connection pooling with httpx cut OpenAlgo order latency by up to 70%, from 250-300ms to about 100ms, with code,...
Rajandran R Rajandran R
5 min read

DuckDB Tutorial for Traders: A Python Guide

For traders dealing with large datasets, the ability to efficiently analyze and manipulate data is crucial. DuckDB is an in-memory, columnar...
Rajandran R Rajandran R
11 min read

A Simple Guide to Using Fyers TBT Feed via Websocket – Python Tutorial

Python tutorial on the Fyers TBT feed websocket: 50 level depth, Protobuf decoding, channels, limits and a Flask dashboard, updated for...
Rajandran R Rajandran R
30 min read

WebSocket Tutorial for Traders and Python Developers

If you’re a developer building tools for traders, or dabbling in algo trading yourself, you know speed is king. A half-second...
Rajandran R Rajandran R
4 min read
TradingView alerts sent through Dev Tunnels to OpenAlgo

Building a LLM based Trading Agent from Scratch – Python Tutorial – Part 1

Build an LLM trading agent in Python: how agents read prices, charts and news, multi-agent design, a code skeleton and the...
Rajandran R Rajandran R
8 min read
10 years intraday data cover illustration

How to Download Last 10 Years of Intraday Data in CSV Format – Python Tutorial

Python script to download intraday data to CSV: 10 years of 1-minute bars for many symbols via OpenAlgo, with resume and...
Rajandran R Rajandran R
8 min read