Redis-backed Rate Limiting in FastAPI (Async, Fixed Window)
Updated: Oct 07, 2025
Overview This guide shows how to implement per-client rate limiting in FastAPI using Redis. We use a simple fixed-window algorithm with atomic counters and response headers, suitable for APIs and internal automation tasks. Why......
Automate Google Drive uploads and file management with Python
Updated: Oct 06, 2025
Overview Automate Google Drive tasks from Python: upload new files, update existing ones, list folder contents, and delete files. This guide shows a minimal, practical setup using the official Drive v3 API. Quickstart Enable the API and......
Programmatically Edit Google Sheets with Python Using gspread
Updated: Oct 06, 2025
Overview Automate boring data updates, reporting, and simple ETL by editing Google Sheets from Python. This guide shows a concise, practical flow using gspread (a thin wrapper over the Google Sheets API) and the official client for......
Auto-Detect RSI Bullish and Bearish Divergence in Python
Updated: Oct 05, 2025
Overview This guide shows how to automatically recognize RSI positive (bullish) and negative (bearish) divergence in Python. We compute RSI, find swing highs/lows (pivots), and pair pivots to identify divergences in a reproducible,......
How to detect MACD positive/ negative divergence with Python
Updated: Oct 05, 2025
Overview This guide shows how to detect MACD positive (bullish) and negative (bearish) divergence in Python using pandas and NumPy. We compute MACD, extract price/oscillator swing points (pivots), align them, and flag......
Custom Stock and Crypto Charts in Python with mplfinance
Updated: Oct 04, 2025
Overview This guide shows how to build custom stock and crypto candlestick charts in Python with mplfinance. You’ll learn quick setup, practical customization (indicators, styles, panels), and how to keep plots fast for algorithmic trading......
Calculate Moving Averages and SMAs in Python for Trading
Updated: Oct 04, 2025
Overview Moving Averages (MAs) smooth price data to reveal trend direction. The Simple Moving Average (SMA) is the arithmetic mean of the last N closing prices. In trading, SMAs help with trend detection, filter noise, and drive rules like......
Free Crypto Daily Price and Volume APIs in Python
Updated: Oct 03, 2025
Overview This guide shows practical, free ways to fetch daily crypto price and volume data in Python for Algorithmic Trading with Python. You’ll get minimal code, trade-offs, rate-limit notes, and pitfalls to avoid. Quickstart Choose a......
Postgres vs CSV for Market Price Data in Python
Updated: Oct 03, 2025
Overview Topic: Using Postgres or CSV to store stock/ crypto/ commodity price data? Category: Python Collection: Algorithmic Trading with Python This guide shows when to use CSV vs Postgres, a minimal working example in Python for both, a......
What Top Python Algo Traders Do in 2025: Practices and a Starter Bot
Updated: Oct 03, 2025
2025 snapshot: who thrives with code-first tradingThis 2025 update focuses on patterns shared by consistently profitable, code-driven traders rather than name-dropping. Across equities, futures, FX, and crypto, the winners leverage......
Free Python APIs for Daily Stock Data in Algorithmic Trading
Updated: Oct 03, 2025
Overview Free daily stock OHLCV data is sufficient for many backtests and signals. This guide shows practical Python options, minimal code to fetch data, and tips to keep downloads reliable and fast. Always review each provider’s terms of......
Detecting Double-Top and Double-Bottom Patterns in Python
Updated: Oct 03, 2025
Overview Double-top (M-shape) and double-bottom (W-shape) patterns are classic reversal setups. This guide shows how to detect them from OHLC close prices using pandas and numpy, with clear validation rules and breakout confirmation......