Python

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

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
7 min read

SSE vs WebSockets: Choosing the Right Tool for Stock Market Applications

SSE vs WebSockets for stock market apps: one-way vs two-way streaming, when to use each, connection limits and a tested FastAPI...
Rajandran R
5 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
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
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
11 min read
TradingView alerts sent through Dev Tunnels to OpenAlgo

Understanding Look-Ahead Bias and How to Avoid It in Trading Strategies

Learn what look-ahead bias in trading is, how to spot it in backtests and ML models, and avoid it with walk-forward...
Rajandran R
12 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
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
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
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
8 min read

OpenEngine – Building Your First Event-Driven Backtesting Engine: A Step-by-Step Research Note

Research note on building OpenEngine, an open source event driven backtesting engine for 1-min data with DuckDB and OpenAlgo PlaceOrder for...
Rajandran R
9 min read
broker historical data cover illustration

Supercharge Your Trading Data Retrieval: Fetch Broker Historical Data Using OpenAlgo Without Hitting API Rate Limits – Python Tutorial

Efficiently retrieving broker data is critical for traders, especially when working with large datasets or multiple stock symbols. OpenAlgo, simplifies this...
Rajandran R
4 min read